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