Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -313,9 +313,9 @@ def process_and_query(input_language=None,audio_input=None,image_input=None,text
|
|
| 313 |
# Return the processed summary along with the hallucination label
|
| 314 |
return final_response, hallucination_label
|
| 315 |
|
| 316 |
-
return f"**Summary**: {final_response}\n\n**Full output**:\n{markdown_output}\n\n**Hallucination Evaluation**: {hallucination_message} {hallucination_result}"
|
| 317 |
except Exception as e:
|
| 318 |
-
|
|
|
|
| 319 |
|
| 320 |
|
| 321 |
welcome_message = """
|
|
|
|
| 313 |
# Return the processed summary along with the hallucination label
|
| 314 |
return final_response, hallucination_label
|
| 315 |
|
|
|
|
| 316 |
except Exception as e:
|
| 317 |
+
# Return a default value for both outputs in case of an exception
|
| 318 |
+
return str(e), "Error in processing"
|
| 319 |
|
| 320 |
|
| 321 |
welcome_message = """
|