Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -798,7 +798,7 @@ def handle_dislike(data: gr.LikeData):
|
|
798 |
def update_message(request: gr.Request):
|
799 |
return f"<h2 style=' font-family: Calibri;'>Welcome, {request.username}</h4>"
|
800 |
|
801 |
-
def send_mail_with_history(req: gr.Request,
|
802 |
if req.username:
|
803 |
send_email_with_attachment_mailjet("lakshmivairamani@gmail.com","conversation history" + req.username, chatbot)
|
804 |
|
@@ -897,6 +897,6 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
897 |
sample_button3.click(handle_query, [sample_button3, chatbot], [chatbot])
|
898 |
sample_button4.click(handle_query, [sample_button4, chatbot], [chatbot])
|
899 |
|
900 |
-
demo.unload(send_mail_with_history
|
901 |
#user_details for login page
|
902 |
demo.launch(auth=[("lakshmi", "redmind"), ("arun", "redmind")])
|
|
|
798 |
def update_message(request: gr.Request):
|
799 |
return f"<h2 style=' font-family: Calibri;'>Welcome, {request.username}</h4>"
|
800 |
|
801 |
+
def send_mail_with_history(req: gr.Request,chatbot):
|
802 |
if req.username:
|
803 |
send_email_with_attachment_mailjet("lakshmivairamani@gmail.com","conversation history" + req.username, chatbot)
|
804 |
|
|
|
897 |
sample_button3.click(handle_query, [sample_button3, chatbot], [chatbot])
|
898 |
sample_button4.click(handle_query, [sample_button4, chatbot], [chatbot])
|
899 |
|
900 |
+
demo.unload(send_mail_with_history(chatbot))
|
901 |
#user_details for login page
|
902 |
demo.launch(auth=[("lakshmi", "redmind"), ("arun", "redmind")])
|