Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -283,12 +283,13 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 283 |
if file_name:
|
| 284 |
attachment_url = f"https://agents-course-unit4-scoring.hf.space/files/{task_id}"
|
| 285 |
full_question_for_agent += f"\n\nAttachment '{file_name}' available at EXACT URL: {attachment_url}"
|
| 286 |
-
print(f"Running agent on task {task_id}: {full_question_for_agent}",flush=True)
|
| 287 |
|
|
|
|
| 288 |
if task_id != "1f975693-876d-457b-a649-393859e79bf3":
|
| 289 |
print("NFLUSH Skip tasks that are not the specific one we want to run", flush=True)
|
| 290 |
continue # Skip tasks that are not the specific one we want to run
|
| 291 |
-
|
| 292 |
try:
|
| 293 |
time.sleep(5) # Add a 5 sec delay before running the agent
|
| 294 |
submitted_answer = agent(full_question_for_agent)
|
|
|
|
| 283 |
if file_name:
|
| 284 |
attachment_url = f"https://agents-course-unit4-scoring.hf.space/files/{task_id}"
|
| 285 |
full_question_for_agent += f"\n\nAttachment '{file_name}' available at EXACT URL: {attachment_url}"
|
| 286 |
+
#print(f"Running agent on task {task_id}: {full_question_for_agent}",flush=True)
|
| 287 |
|
| 288 |
+
'''
|
| 289 |
if task_id != "1f975693-876d-457b-a649-393859e79bf3":
|
| 290 |
print("NFLUSH Skip tasks that are not the specific one we want to run", flush=True)
|
| 291 |
continue # Skip tasks that are not the specific one we want to run
|
| 292 |
+
'''
|
| 293 |
try:
|
| 294 |
time.sleep(5) # Add a 5 sec delay before running the agent
|
| 295 |
submitted_answer = agent(full_question_for_agent)
|