Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1578,7 +1578,10 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 1578 |
|
| 1579 |
print(f"β
Downloaded: {filename} ({file_size} bytes)")
|
| 1580 |
print(f" Saved to: {abs_path}")
|
| 1581 |
-
|
|
|
|
|
|
|
|
|
|
| 1582 |
try:
|
| 1583 |
# Pass file_path to agent
|
| 1584 |
submitted_answer = agent(question_text, local_file_path)
|
|
|
|
| 1578 |
|
| 1579 |
print(f"β
Downloaded: {filename} ({file_size} bytes)")
|
| 1580 |
print(f" Saved to: {abs_path}")
|
| 1581 |
+
except Exception as e:
|
| 1582 |
+
# Handles any other unexpected errors
|
| 1583 |
+
print(f"\nβ An unexpected error occurred: {e}")
|
| 1584 |
+
|
| 1585 |
try:
|
| 1586 |
# Pass file_path to agent
|
| 1587 |
submitted_answer = agent(question_text, local_file_path)
|