pavanmutha commited on
Commit
49a7e35
·
verified ·
1 Parent(s): 9e5a0f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -58,7 +58,6 @@ def run_agent(_):
58
  if df_global is None:
59
  return "No data available. Please upload a file first."
60
 
61
- # Save the cleaned DataFrame to a temp file for SmolAgent
62
  temp_path = "./temp_cleaned_data.csv"
63
  df_global.to_csv(temp_path, index=False)
64
 
@@ -73,16 +72,14 @@ def run_agent(_):
73
  """,
74
  additional_args={
75
  "additional_notes": additional_notes,
76
- "source_file": temp_path # This is the key fix — pass the CSV file path
77
  }
78
  )
79
 
 
80
  return analysis_result
81
 
82
 
83
- # Optionally, you can inspect the results
84
- print(analysis_result)
85
-
86
 
87
  def train_model(_):
88
  wandb.login(key=os.environ.get("WANDB_API_KEY"))
 
58
  if df_global is None:
59
  return "No data available. Please upload a file first."
60
 
 
61
  temp_path = "./temp_cleaned_data.csv"
62
  df_global.to_csv(temp_path, index=False)
63
 
 
72
  """,
73
  additional_args={
74
  "additional_notes": additional_notes,
75
+ "source_file": temp_path
76
  }
77
  )
78
 
79
+ print(analysis_result) # Safe to print here if you're debugging
80
  return analysis_result
81
 
82
 
 
 
 
83
 
84
  def train_model(_):
85
  wandb.login(key=os.environ.get("WANDB_API_KEY"))