Spaces:
Build error
Build error
Update app.py
Browse files809 unmodified lines81081181281381481581676 unmodified lines8938948958968978988994 unmodified lines904905906907908909809 unmodified linesif req.username:send_email_with_attachment_mailjet("lakshmivairamani@gmail.com","conversation history" + req.username, chatbot)# CSS for styling the buttons and other elementscss = """/* Example of custom button styling */76 unmodified lineschatbot = gr.Chatbot(label="Select any of the questions listed above to experience RedmindGPT in action.",elem_classes="chatbot_gpt")with gr.Row():with gr.Column(scale=2):message = gr.Textbox(show_label=False, container=False, placeholder="Please enter your question")with gr.Row():4 unmodified linesbutton = gr.Button("Submit", elem_id="submit",elem_classes="gr-buttonbig")# Button to stop the current processingstop_button = gr.Button("Stop", elem_classes="gr-buttonbig")#gr.ClearButton(message, elem_classes="gr-buttonbig")stop_button.click(stop_processing, [chatbot],[chatbot])809 unmodified lines81081181281381481581681776 unmodified lines8948958968978988999004 unmodified lines905906907908909910911912809 unmodified linesif req.username:send_email_with_attachment_mailjet("lakshmivairamani@gmail.com","conversation history" + req.username, chatbot)def upload_file(filepath):gr.Info("File uploaded")# CSS for styling the buttons and other elementscss = """/* Example of custom button styling */76 unmodified lineschatbot = gr.Chatbot(label="Select any of the questions listed above to experience RedmindGPT in action.",elem_classes="chatbot_gpt")with gr.Row():with gr.Column(scale=1):message = gr.Textbox(show_label=False, container=False, placeholder="Please enter your question")with gr.Row():4 unmodified linesbutton = gr.Button("Submit", elem_id="submit",elem_classes="gr-buttonbig")# Button to stop the current processingstop_button = gr.Button("Stop", elem_classes="gr-buttonbig")u = gr.UploadButton("Upload a file", file_count="single")u.upload(upload_file, u)#gr.ClearButton(message, elem_classes="gr-buttonbig")stop_button.click(stop_processing, [chatbot],[chatbot])
app.py+5-2