Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ import inspect
|
|
5 |
import pandas as pd
|
6 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
7 |
from GeneralAgent import AgenticAI
|
|
|
8 |
|
9 |
# (Keep Constants as is)
|
10 |
# --- Constants ---
|
@@ -109,6 +110,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
109 |
submitted_answer = agent(question_text)
|
110 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
111 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
|
|
112 |
except Exception as e:
|
113 |
print(f"Error running agent on task {task_id}: {e}")
|
114 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
|
|
5 |
import pandas as pd
|
6 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
7 |
from GeneralAgent import AgenticAI
|
8 |
+
import time
|
9 |
|
10 |
# (Keep Constants as is)
|
11 |
# --- Constants ---
|
|
|
110 |
submitted_answer = agent(question_text)
|
111 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
112 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
113 |
+
time.sleep(60)
|
114 |
except Exception as e:
|
115 |
print(f"Error running agent on task {task_id}: {e}")
|
116 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|