Spaces:
Runtime error
Runtime error
File size: 1,127 Bytes
5269c7e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
import sys
import os
print("Python version:", sys.version)
print("Current directory:", os.getcwd())
try:
import pandas as pd
print("β
Pandas imported successfully")
except ImportError as e:
print("β Pandas import failed:", e)
try:
import smolagents
print("β
SmoLagents imported successfully")
except ImportError as e:
print("β SmoLagents import failed:", e)
try:
import gradio as gr
print("β
Gradio imported successfully")
except ImportError as e:
print("β Gradio import failed:", e)
# Check if CSV file exists
csv_path = "C:/Users/Cosmo/Desktop/NTU Peak Singtel/outsystems_sample_logs_6months.csv"
if os.path.exists(csv_path):
print(f"β
CSV file found at: {csv_path}")
try:
df = pd.read_csv(csv_path)
print(f"β
CSV loaded successfully. Shape: {df.shape}")
print(f"Columns: {list(df.columns)}")
except Exception as e:
print(f"β Error loading CSV: {e}")
else:
print(f"β CSV file not found at: {csv_path}")
print("Please check the file path and ensure the file exists.")
print("\nπ Setup verification complete!")
|