gabejavitt commited on
Commit
e433844
Β·
verified Β·
1 Parent(s): 3cf07b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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)