Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,7 @@ import wikipedia
|
|
| 11 |
import torch
|
| 12 |
from tooling import WikipediaPageFetcher,MathModelQuerer, YoutubeTranscriptFetcher, CodeModelQuerer
|
| 13 |
from langchain_community.agent_toolkits.load_tools import load_tools
|
|
|
|
| 14 |
|
| 15 |
# (Keep Constants as is)
|
| 16 |
# --- Constants ---
|
|
@@ -202,6 +203,11 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 202 |
answers_payload = []
|
| 203 |
print(f"Running agent on {len(questions_data)} questions...")
|
| 204 |
for item in questions_data:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 205 |
task_id = item.get("task_id")
|
| 206 |
question_text = item.get("question")
|
| 207 |
if not task_id or question_text is None:
|
|
|
|
| 11 |
import torch
|
| 12 |
from tooling import WikipediaPageFetcher,MathModelQuerer, YoutubeTranscriptFetcher, CodeModelQuerer
|
| 13 |
from langchain_community.agent_toolkits.load_tools import load_tools
|
| 14 |
+
import time
|
| 15 |
|
| 16 |
# (Keep Constants as is)
|
| 17 |
# --- Constants ---
|
|
|
|
| 203 |
answers_payload = []
|
| 204 |
print(f"Running agent on {len(questions_data)} questions...")
|
| 205 |
for item in questions_data:
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
time.sleep(60)
|
| 209 |
+
|
| 210 |
+
|
| 211 |
task_id = item.get("task_id")
|
| 212 |
question_text = item.get("question")
|
| 213 |
if not task_id or question_text is None:
|