Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -624,6 +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 |
|
628 |
email_pattern = r'[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}'
|
629 |
match = re.search(email_pattern, user_question)
|
@@ -648,7 +649,7 @@ def answer_question_thread(user_question, chatbot, audio=None):
|
|
648 |
# attachment_path=chart_path
|
649 |
attachment_path=os.getenv("IMAGE_PATH")
|
650 |
)"""
|
651 |
-
|
652 |
|
653 |
if "send email to" in user_question:
|
654 |
try:
|
|
|
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)
|
|
|
649 |
# attachment_path=chart_path
|
650 |
attachment_path=os.getenv("IMAGE_PATH")
|
651 |
)"""
|
652 |
+
#return user_question, img
|
653 |
|
654 |
if "send email to" in user_question:
|
655 |
try:
|