Spaces:
Sleeping
Sleeping
Test submit_url
Browse files- simuGAIA.py +2 -1
simuGAIA.py
CHANGED
@@ -200,6 +200,7 @@ def run_simuGAIA_all( profile: gr.OAuthProfile | None, submit: Optional[bool] =
|
|
200 |
api_url = DEFAULT_API_URL
|
201 |
questions_url = f"{api_url}/questions"
|
202 |
submit_url = f"{api_url}/submit"
|
|
|
203 |
|
204 |
# 1. Instantiate and init Agent ( modify this part to create your agent)
|
205 |
agent = init_agent()
|
@@ -251,7 +252,7 @@ def run_simuGAIA_all( profile: gr.OAuthProfile | None, submit: Optional[bool] =
|
|
251 |
existing_answer = manager.get_answer_by_task_id(task_id)
|
252 |
if not existing_answer:
|
253 |
# then we call the agent
|
254 |
-
if question_text.startswith("What
|
255 |
print(f"Precise question detected. INVOKING AGENT! Be careful!")
|
256 |
submitted_answer = agent.invoke(question_text)
|
257 |
|
|
|
200 |
api_url = DEFAULT_API_URL
|
201 |
questions_url = f"{api_url}/questions"
|
202 |
submit_url = f"{api_url}/submit"
|
203 |
+
print("submit_url = " + submit_url)
|
204 |
|
205 |
# 1. Instantiate and init Agent ( modify this part to create your agent)
|
206 |
agent = init_agent()
|
|
|
252 |
existing_answer = manager.get_answer_by_task_id(task_id)
|
253 |
if not existing_answer:
|
254 |
# then we call the agent
|
255 |
+
if question_text.startswith("What si the first name of"): # **NOK**: ("Who are the pitchers"): # **NOK**:("What country had the least number"): # ("Where were the Vietnamese"): # ("On June 6, 2023, an article"): # ("How many at bats did the Yankee"): # ("Who did the actor who"): # ("m making a grocery list", 2): # ("What is the surname of the"): # ("Given this table"): # ("Who nominated the only"): # ("How many studio albums"): # (".rewsna eht sa"): <--- REMOVE THAT FOR ALL QUESTIONS
|
256 |
print(f"Precise question detected. INVOKING AGENT! Be careful!")
|
257 |
submitted_answer = agent.invoke(question_text)
|
258 |
|