Redmind commited on
Commit
919e661
·
verified ·
1 Parent(s): c0e8976

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -624,7 +624,7 @@ def answer_question_thread(user_question, chatbot, audio=None):
624
  img = f'<img src="data:image/png;base64,{img_str}" style="width:450px; height:400px;">'
625
  # image = gr.Image(value=img_str)
626
  #chatbot.append((user_question, img))
627
- response_text = img
628
 
629
  email_pattern = r'[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}'
630
  match = re.search(email_pattern, user_question)
 
624
  img = f'<img src="data:image/png;base64,{img_str}" style="width:450px; height:400px;">'
625
  # image = gr.Image(value=img_str)
626
  #chatbot.append((user_question, img))
627
+ response_text = response.get("output", "").split(".")[0] + img
628
 
629
  email_pattern = r'[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}'
630
  match = re.search(email_pattern, user_question)