Spaces:
Runtime error
Runtime error
Update app.py
Browse files1514 unmodified lines151515161517151815191520152146 unmodified lines15681569157015711572157315741514 unmodified lines# Buttons for sample querieswith gr.Row():#sample_button = gr.Button("What are the details of ASN24091600002", elem_classes="gr-buttonbig")sample_button1 = gr.Button("What are the active warehouses available", elem_classes="gr-buttonbig")sample_button2 = gr.Button("Explain Pre-Receiving Yard Management", elem_classes="gr-buttonbig")sample_button3 = gr.Button("can you generate a doughnut chart with item name and quantities for warehouse DUBAIWARE", elem_classes="gr-buttonbig")46 unmodified linessubmit_feedback_button.click(submit_feedback, [feedback_textbox, chatbot], [chatbot, feedback_textbox, submit_feedback_button])submit_feedback_button.click(lambda x: gr.update(value=''), [], [feedback_textbox])#sample_button.click(handle_query, [sample_button, chatbot], [chatbot])sample_button1.click(handle_query, [sample_button1, chatbot], [chatbot])sample_button2.click(handle_query, [sample_button2, chatbot], [chatbot])sample_button3.click(handle_query, [sample_button3, chatbot], [chatbot])1514 unmodified lines151515161517151815191520152146 unmodified lines15681569157015711572157315741514 unmodified lines# Buttons for sample querieswith gr.Row():sample_button = gr.Button("What are the details of ASN24091600002", elem_classes="gr-buttonbig")sample_button1 = gr.Button("What are the active warehouses available", elem_classes="gr-buttonbig")sample_button2 = gr.Button("Explain Pre-Receiving Yard Management", elem_classes="gr-buttonbig")sample_button3 = gr.Button("can you generate a doughnut chart with item name and quantities for warehouse DUBAIWARE", elem_classes="gr-buttonbig")46 unmodified linessubmit_feedback_button.click(submit_feedback, [feedback_textbox, chatbot], [chatbot, feedback_textbox, submit_feedback_button])submit_feedback_button.click(lambda x: gr.update(value=''), [], [feedback_textbox])sample_button.click(handle_query, [sample_button, chatbot], [chatbot])sample_button1.click(handle_query, [sample_button1, chatbot], [chatbot])sample_button2.click(handle_query, [sample_button2, chatbot], [chatbot])sample_button3.click(handle_query, [sample_button3, chatbot], [chatbot])
app.py+2-2