Spaces:
Build error
Build error
Update app.py
Browse files556 unmodified lines557558559560561562563564565566567568556 unmodified linesimg = f'<img src="data:image/png;base64,{img_str}" style="width:500px; height:400px;">'# image = gr.Image(value=img_str)chatbot.append((user_question, img))print("user_email")print(user_email)email_pattern = r'[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}'match = re.search(email_pattern, user_question)if match:user_email = match.group() # Return the matched email# email sendif user_email:# Send email with the chart image attached556 unmodified lines557558559560561562563564565566567568569556 unmodified linesimg = f'<img src="data:image/png;base64,{img_str}" style="width:500px; height:400px;">'# image = gr.Image(value=img_str)chatbot.append((user_question, img))email_pattern = r'[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}'match = re.search(email_pattern, user_question)if match:user_email = match.group() # Return the matched emailprint("user_email")print(user_email)# email sendif user_email:# Send email with the chart image attached
app.py+3-2