Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|