Tonic commited on
Commit
c03a440
1 Parent(s): 2a1c10a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -385,6 +385,10 @@ def process_and_query(input_language=None, audio_input=None, image_input=None, t
385
  print("Hallucination Label:", hallucination_label) # Debug print
386
 
387
  return final_response, hallucination_label
 
 
 
 
388
 
389
 
390
 
 
385
  print("Hallucination Label:", hallucination_label) # Debug print
386
 
387
  return final_response, hallucination_label
388
+ except Exception as e:
389
+ # Handle exceptions
390
+ print(f"An error occurred: {e}")
391
+ return "Error occurred during processing.", "No hallucination evaluation"
392
 
393
 
394