Spaces:
Sleeping
Sleeping
Alexandre Gazola
commited on
Commit
·
44bfe64
1
Parent(s):
cf26711
fix
Browse files
app.py
CHANGED
@@ -91,7 +91,6 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
91 |
file_path = os.path.join(BASE_DIR, 'files', file_name)
|
92 |
plain_txt_file = get_text_file_contents(file_path)
|
93 |
question_text_for_agent += f'. The attatchement has the following content: {plain_txt_file}'
|
94 |
-
question_text_for_agent += f'. The content in base64 of the attatched file mentioned in the question is the following: {base64_attatched_file}'
|
95 |
submitted_answer = agent(question_text_for_agent)
|
96 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
97 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
|
|
91 |
file_path = os.path.join(BASE_DIR, 'files', file_name)
|
92 |
plain_txt_file = get_text_file_contents(file_path)
|
93 |
question_text_for_agent += f'. The attatchement has the following content: {plain_txt_file}'
|
|
|
94 |
submitted_answer = agent(question_text_for_agent)
|
95 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
96 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|