Spaces:
Runtime error
Runtime error
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!") | |