Transformers
English
code
Inference Endpoints
text2shellcommands / dataset_loader.py
Canstralian's picture
Create dataset_loader.py
1feb780 verified
raw
history blame contribute delete
307 Bytes
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