Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -318,8 +318,8 @@ def assistant(state: AgentState, llm_with_tools):
|
|
| 318 |
3. Use the tools to find the answer.
|
| 319 |
4. If the answer is not found using the tools, search online.
|
| 320 |
5. Provide a step-by-step explanation of your process.
|
| 321 |
-
6. YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string. Finish your answer with the following template:
|
| 322 |
-
|
| 323 |
|
| 324 |
==========================
|
| 325 |
Here is a few examples showing you how to answer the question step by step.
|
|
@@ -453,6 +453,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 453 |
continue
|
| 454 |
try:
|
| 455 |
submitted_answer = agent(question_text,file_URL = file_url)
|
|
|
|
| 456 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
| 457 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
| 458 |
except Exception as e:
|
|
|
|
| 318 |
3. Use the tools to find the answer.
|
| 319 |
4. If the answer is not found using the tools, search online.
|
| 320 |
5. Provide a step-by-step explanation of your process.
|
| 321 |
+
6. YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string. Finish your answer with the following template: [YOUR FINAL ANSWER].
|
| 322 |
+
7. Then you must return the content of [YOUR FINAL ANSWER] without brackets, conclude, and keep it as brief as possible, to a few words, as the previous line #6 said.
|
| 323 |
|
| 324 |
==========================
|
| 325 |
Here is a few examples showing you how to answer the question step by step.
|
|
|
|
| 453 |
continue
|
| 454 |
try:
|
| 455 |
submitted_answer = agent(question_text,file_URL = file_url)
|
| 456 |
+
time.sleep(20)
|
| 457 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
| 458 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
| 459 |
except Exception as e:
|