Spaces:
Build error
Build error
Update app.py
Browse files556 unmodified lines557558559560561560561562563564565566567568569556 unmodified lines img = 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 print("user_email") print(user_email) # email send if user_email: # Send email with the chart image attachedapp.py+3-2