Spaces:
Build error
Build error
Update app.py
Browse files809 unmodified lines81081181281381381481581681776 unmodified lines8948958968968978988999004 unmodified lines905906907908909910911912809 unmodified lines if 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 lines chatbot = 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): with gr.Column(scale=1): message = gr.Textbox(show_label=False, container=False, placeholder="Please enter your question") with gr.Row():4 unmodified lines button = gr.Button("Submit", elem_id="submit",elem_classes="gr-buttonbig") # Button to stop the current processing stop_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