Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -618,7 +618,7 @@ def update_message(request: gr.Request):
|
|
| 618 |
css = """
|
| 619 |
/* Example of custom button styling */
|
| 620 |
.gr-button {
|
| 621 |
-
background-color: #
|
| 622 |
color: white;
|
| 623 |
border-radius: 8px; /* Make the corners rounded */
|
| 624 |
border: none;
|
|
@@ -659,10 +659,10 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
| 659 |
|
| 660 |
with gr.Row():
|
| 661 |
sample_button = gr.Button("What is the expected receiving date and the status of ASN24081900001",elem_classes="gr-button")
|
| 662 |
-
sample_button1 = gr.Button("What are the active warehouses available")
|
| 663 |
-
sample_button2 = gr.Button("Explain Pre-Receiving Yard Management")
|
| 664 |
-
sample_button3 = gr.Button("Can you generate a pie chart with item names and quantities in warehouse WH")
|
| 665 |
-
sample_button4 = gr.Button("I want to analyze item name and quantity for different customers in a stacked bar chart for the warehouse WH", visible=False)
|
| 666 |
|
| 667 |
with gr.Row():
|
| 668 |
chatbot = gr.Chatbot(label="Ask a question about the API, Database, a Document or Warehouse inventory analysis.")
|
|
@@ -672,10 +672,10 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
| 672 |
message = gr.Textbox(show_label=False, container=False, placeholder="Please enter your question")
|
| 673 |
with gr.Row():
|
| 674 |
feedback_textbox = gr.Textbox(visible=False, show_label=False, container=False, placeholder="Please enter your feedback.")
|
| 675 |
-
submit_feedback_button = gr.Button("Submit Feedback", visible=False)
|
| 676 |
with gr.Column(scale=1):
|
| 677 |
with gr.Row():
|
| 678 |
-
button = gr.Button("Submit", elem_id="submit")
|
| 679 |
|
| 680 |
button.click(answer_question, [message, chatbot], [chatbot])
|
| 681 |
message.submit(answer_question, [message, chatbot], [chatbot])
|
|
|
|
| 618 |
css = """
|
| 619 |
/* Example of custom button styling */
|
| 620 |
.gr-button {
|
| 621 |
+
background-color: #6366f1; /* Change to your desired button color */
|
| 622 |
color: white;
|
| 623 |
border-radius: 8px; /* Make the corners rounded */
|
| 624 |
border: none;
|
|
|
|
| 659 |
|
| 660 |
with gr.Row():
|
| 661 |
sample_button = gr.Button("What is the expected receiving date and the status of ASN24081900001",elem_classes="gr-button")
|
| 662 |
+
sample_button1 = gr.Button("What are the active warehouses available",elem_classes="gr-button")
|
| 663 |
+
sample_button2 = gr.Button("Explain Pre-Receiving Yard Management",elem_classes="gr-button")
|
| 664 |
+
sample_button3 = gr.Button("Can you generate a pie chart with item names and quantities in warehouse WH",elem_classes="gr-button")
|
| 665 |
+
sample_button4 = gr.Button("I want to analyze item name and quantity for different customers in a stacked bar chart for the warehouse WH", visible=False,elem_classes="gr-button")
|
| 666 |
|
| 667 |
with gr.Row():
|
| 668 |
chatbot = gr.Chatbot(label="Ask a question about the API, Database, a Document or Warehouse inventory analysis.")
|
|
|
|
| 672 |
message = gr.Textbox(show_label=False, container=False, placeholder="Please enter your question")
|
| 673 |
with gr.Row():
|
| 674 |
feedback_textbox = gr.Textbox(visible=False, show_label=False, container=False, placeholder="Please enter your feedback.")
|
| 675 |
+
submit_feedback_button = gr.Button("Submit Feedback", visible=False,elem_classes="gr-button")
|
| 676 |
with gr.Column(scale=1):
|
| 677 |
with gr.Row():
|
| 678 |
+
button = gr.Button("Submit", elem_id="submit",elem_classes="gr-button")
|
| 679 |
|
| 680 |
button.click(answer_question, [message, chatbot], [chatbot])
|
| 681 |
message.submit(answer_question, [message, chatbot], [chatbot])
|