Spaces:
Build error
Build error
Update app.py
Browse files254 unmodified lines255256257258258259260261536 unmodified lines79879980080180280380480580690 unmodified lines897898899900901902254 unmodified lines return query_response
# mailjet API since SMTP is not supported HF spacesdef send_email_with_attachment_mailjet(recipient_email, subject, body, attach_img_base64):def send_email_with_attachment_mailjet(recipient_email, subject, body, attach_img_base64=None):
api_key = os.getenv("MAILJET_API_KEY")536 unmodified linesdef update_message(request: gr.Request): return f"<h2 style=' font-family: Calibri;'>Welcome, {request.username}</h4>"
def send_mail_with_history(req: gr.Request, chatbot): if req.username: send_email_with_attachment_mailjet("lakshmivairamani@gmail.com","conversation history" + req.username, chatbot)
# CSS for styling the buttons and other elementscss = """90 unmodified lines sample_button3.click(handle_query, [sample_button3, chatbot], [chatbot]) sample_button4.click(handle_query, [sample_button4, chatbot], [chatbot])
demo.unload(send_mail_with history(chatbot))#user_details for login pagedemo.launch(auth=[("lakshmi", "redmind"), ("arun", "redmind")])app.py+5-1