saa231 commited on
Commit
ca82b95
·
verified ·
1 Parent(s): 37ccf02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,7 +6,7 @@ from project_model import process_inputs, session
6
 
7
 
8
  def handle_question(image, audio):
9
- try:
10
  if image and audio: # Handle the initial question with image and audio
11
  session.current_image = image
12
  message, answer_audio = process_inputs(session, image=image, audio_path=audio)
@@ -54,8 +54,8 @@ def handle_question(image, audio):
54
  return "Please upload an image and/or record an audio clip.", None
55
 
56
  return markdown_reply, answer_audio
57
- except ValueError as e:
58
- return f"❗Error: {str(e)}", None
59
 
60
 
61
 
 
6
 
7
 
8
  def handle_question(image, audio):
9
+ #try:
10
  if image and audio: # Handle the initial question with image and audio
11
  session.current_image = image
12
  message, answer_audio = process_inputs(session, image=image, audio_path=audio)
 
54
  return "Please upload an image and/or record an audio clip.", None
55
 
56
  return markdown_reply, answer_audio
57
+ #except ValueError as e:
58
+ # return f"❗Error: {str(e)}", None
59
 
60
 
61