Redmind commited on
Commit
123ad82
·
verified ·
1 Parent(s): 529bb03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -557,12 +557,13 @@ def answer_question(user_question, chatbot, audio=None):
557
  img = f'<img src="data:image/png;base64,{img_str}" style="width:500px; height:400px;">'
558
  # image = gr.Image(value=img_str)
559
  chatbot.append((user_question, img))
560
- print("user_email")
561
- print(user_email)
562
  email_pattern = r'[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}'
563
  match = re.search(email_pattern, user_question)
564
  if match:
565
  user_email = match.group() # Return the matched email
 
 
566
  # email send
567
  if user_email:
568
  # Send email with the chart image attached
 
557
  img = f'<img src="data:image/png;base64,{img_str}" style="width:500px; height:400px;">'
558
  # image = gr.Image(value=img_str)
559
  chatbot.append((user_question, img))
560
+
 
561
  email_pattern = r'[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}'
562
  match = re.search(email_pattern, user_question)
563
  if match:
564
  user_email = match.group() # Return the matched email
565
+ print("user_email")
566
+ print(user_email)
567
  # email send
568
  if user_email:
569
  # Send email with the chart image attached