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", dtype="auto") - Notebooks
- Google Colab
- Kaggle
| 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 | |