Spaces:
Sleeping
Sleeping
pttnn j'oublie le f..
Browse files
app.py
CHANGED
|
@@ -80,7 +80,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 80 |
data = load_data(item)
|
| 81 |
print("data:", data)
|
| 82 |
#submitted_answer = response_from_agent(supervisor,question_text + 'The file_name (path) is : ' + filename)
|
| 83 |
-
submitted_answer = response_from_agent(supervisor, 'the question is {question_text}. The attached file is {data}. If it is a .mp3, you have the transcripted text in the attached file. If it is an excel file, you have a dictionnary. If it is a png file, you will have the path to the file.')
|
| 84 |
|
| 85 |
print('submitted_answer:', submitted_answer)
|
| 86 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
|
|
|
| 80 |
data = load_data(item)
|
| 81 |
print("data:", data)
|
| 82 |
#submitted_answer = response_from_agent(supervisor,question_text + 'The file_name (path) is : ' + filename)
|
| 83 |
+
submitted_answer = response_from_agent(supervisor, f'the question is {question_text}. The attached file is {data}. If it is a .mp3, you have the transcripted text in the attached file. If it is an excel file, you have a dictionnary. If it is a png file, you will have the path to the file.')
|
| 84 |
|
| 85 |
print('submitted_answer:', submitted_answer)
|
| 86 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|