Instructions to use Canstralian/text2shellcommands with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Canstralian/text2shellcommands with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Canstralian/text2shellcommands", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 307 Bytes
1feb780 | 1 2 3 4 5 6 7 8 9 10 11 | import pandas as pd
# Function to load dataset (assuming it is a CSV file)
def load_dataset():
try:
df = pd.read_csv("datasets/Canstralian/ShellCommands.csv") # Adjust to correct path
return df
except FileNotFoundError:
print("Dataset file not found.")
return None
|