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!")