Redmind commited on
Commit
c6e3bc5
·
verified ·
1 Parent(s): 4ccafe3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -5
app.py CHANGED
@@ -622,6 +622,27 @@ css = """
622
  50% { transform: scale(1.1); }
623
  100% { transform: scale(1); }
624
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
625
  """
626
 
627
  def submit_feedback(feedback, chatbot):
@@ -642,11 +663,11 @@ def handle_dislike(data: gr.LikeData):
642
  with gr.Blocks(css=css) as demo:
643
  gr.Markdown("<CENTER><h2 style='font-size: 20px; font-family: Calibri;'>NewageNXT GPT</h2></CENTER>")
644
  with gr.Row():
645
- sample_button = gr.Button("What are the details of ASN24080600008", elem_classes="custom-button", style={"background-color": "blue"})
646
- sample_button1 = gr.Button("What are the active warehouses", elem_classes="custom-button", style={"background-color": "red"})
647
- sample_button2 = gr.Button("Explain Pre-Receiving Yard Management", elem_classes="custom-button", style={"background-color": "purple"})
648
- sample_button3 = gr.Button("Can you generate a pie chart with item names and quantities in warehouse WH", elem_classes="custom-button", style={"background-color": "orange"})
649
- sample_button4 = gr.Button("I want to analyze item name and quantity in a bar chart in warehouse WH and send email to lakshmivairamani@gmail.com", elem_classes="custom-button", style={"background-color": "yellow"})
650
 
651
  with gr.Row():
652
  chatbot = gr.Chatbot(elem_classes="gr-chatbot",
 
622
  50% { transform: scale(1.1); }
623
  100% { transform: scale(1); }
624
  }
625
+ #button2 {
626
+ background-color: "yellow";
627
+ /* The rest of the CSS is similar to button1 */
628
+ }
629
+ #button2 {
630
+ background-color: "red";
631
+ /* The rest of the CSS is similar to button1 */
632
+ }
633
+ #button3 {
634
+ background-color: "blue";
635
+ /* The rest of the CSS is similar to button1 */
636
+ }
637
+ #button4 {
638
+ background-color: "green";
639
+ /* The rest of the CSS is similar to button1 */
640
+ }
641
+ #button5 {
642
+ background-color: "purple";
643
+ /* The rest of the CSS is similar to button1 */
644
+ }
645
+
646
  """
647
 
648
  def submit_feedback(feedback, chatbot):
 
663
  with gr.Blocks(css=css) as demo:
664
  gr.Markdown("<CENTER><h2 style='font-size: 20px; font-family: Calibri;'>NewageNXT GPT</h2></CENTER>")
665
  with gr.Row():
666
+ sample_button = gr.Button("What are the details of ASN24080600008", elem_classes="custom-button" , elem_id="button1")
667
+ sample_button1 = gr.Button("What are the active warehouses", elem_classes="custom-button", elem_id="button2")
668
+ sample_button2 = gr.Button("Explain Pre-Receiving Yard Management", elem_classes="custom-button", elem_id="button3")
669
+ sample_button3 = gr.Button("Can you generate a pie chart with item names and quantities in warehouse WH", elem_classes="custom-button", elem_id="button4")
670
+ sample_button4 = gr.Button("I want to analyze item name and quantity in a bar chart in warehouse WH and send email to lakshmivairamani@gmail.com", elem_classes="custom-button", elem_id="button5")
671
 
672
  with gr.Row():
673
  chatbot = gr.Chatbot(elem_classes="gr-chatbot",