Tonic commited on
Commit
5bdde3a
1 Parent(s): e961e45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- return str(e)
 
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 = """