Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -277,13 +277,13 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 277 |
if file_name:
|
| 278 |
attachment_url = f"https://agents-course-unit4-scoring.hf.space/files/{task_id}"
|
| 279 |
full_question_for_agent += f"\n\nAttachment '{file_name}' available at EXACT URL: {attachment_url}"
|
| 280 |
-
|
| 281 |
|
| 282 |
-
|
| 283 |
-
if task_id != "
|
| 284 |
print("NFLUSH Skip tasks that are not the specific one we want to run", flush=True)
|
| 285 |
continue # Skip tasks that are not the specific one we want to run
|
| 286 |
-
|
| 287 |
try:
|
| 288 |
time.sleep(61) # Add a 1 min delay before running the agent
|
| 289 |
submitted_answer = agent(full_question_for_agent)
|
|
|
|
| 277 |
if file_name:
|
| 278 |
attachment_url = f"https://agents-course-unit4-scoring.hf.space/files/{task_id}"
|
| 279 |
full_question_for_agent += f"\n\nAttachment '{file_name}' available at EXACT URL: {attachment_url}"
|
| 280 |
+
print(f"Running agent on task {task_id}: {full_question_for_agent}",flush=True)
|
| 281 |
|
| 282 |
+
|
| 283 |
+
if task_id != "7bd855d8-463d-4ed5-93ca-5fe35145f733":
|
| 284 |
print("NFLUSH Skip tasks that are not the specific one we want to run", flush=True)
|
| 285 |
continue # Skip tasks that are not the specific one we want to run
|
| 286 |
+
|
| 287 |
try:
|
| 288 |
time.sleep(61) # Add a 1 min delay before running the agent
|
| 289 |
submitted_answer = agent(full_question_for_agent)
|