cloud93n commited on
Commit
5ec5f61
·
verified ·
1 Parent(s): 9efad50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -6,6 +6,7 @@ import inspect
6
  import pandas as pd
7
  from smolagents import CodeAgent, DuckDuckGoSearchTool, PythonInterpreterTool, HfApiModel, LiteLLMModel
8
  from huggingface_hub import login
 
9
 
10
  # (Keep Constants as is)
11
  # --- Constants ---
@@ -119,6 +120,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
119
  print(f"Error running agent on task {task_id}: {e}")
120
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
121
 
 
 
122
  if not answers_payload:
123
  print("Agent did not produce any answers to submit.")
124
  return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
 
6
  import pandas as pd
7
  from smolagents import CodeAgent, DuckDuckGoSearchTool, PythonInterpreterTool, HfApiModel, LiteLLMModel
8
  from huggingface_hub import login
9
+ import time
10
 
11
  # (Keep Constants as is)
12
  # --- Constants ---
 
120
  print(f"Error running agent on task {task_id}: {e}")
121
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
122
 
123
+ time.sleep(45)
124
+
125
  if not answers_payload:
126
  print("Agent did not produce any answers to submit.")
127
  return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)