Redmind commited on
Commit
7a8980b
·
verified ·
1 Parent(s): 31dfbb3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -9
app.py CHANGED
@@ -821,6 +821,21 @@ css = """
821
  background-color: #8a92f7; /* Darker shade on hover */
822
  }
823
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
824
  /* Customizing the Logout link to be on the right */
825
  .logout-link {
826
  text-align: right;
@@ -859,10 +874,10 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
859
  gr.Markdown("<div class='logout-link'><a href='/logout'><b>Logout</b></a></div>")
860
 
861
  with gr.Row():
862
- sample_button = gr.Button("What is the expected receiving date and the status of ASN24081900001",elem_classes="gr-button")
863
- sample_button1 = gr.Button("What are the active warehouses available",elem_classes="gr-button")
864
- sample_button2 = gr.Button("Explain Pre-Receiving Yard Management",elem_classes="gr-button")
865
- sample_button3 = gr.Button("Can you generate a pie chart with item names and quantities in warehouse WH",elem_classes="gr-button")
866
  sample_button4 = gr.Button("Analyze item name and quantity for different customers in a stacked bar chart for the warehouse WH & send email to [email protected]", elem_classes="gr-button")
867
 
868
  with gr.Row():
@@ -873,13 +888,13 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
873
  message = gr.Textbox(show_label=False, container=False, placeholder="Please enter your question")
874
  with gr.Row():
875
  feedback_textbox = gr.Textbox(visible=False, show_label=False, container=False, placeholder="Please enter your feedback.")
876
- submit_feedback_button = gr.Button("Submit Feedback", visible=False,elem_classes="gr-button")
877
  with gr.Column(scale=1):
878
  with gr.Row():
879
- button = gr.Button("Submit", elem_id="submit",elem_classes="gr-button")
880
  # Button to stop the current processing
881
- stop_button = gr.Button("Stop", elem_classes="gr-button")
882
- #gr.ClearButton(message, elem_classes="gr-button")
883
 
884
  stop_button.click(stop_processing, [chatbot],[chatbot])
885
 
@@ -902,4 +917,4 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
902
  #demo.unload(lambda: send_mail_with_history(chatbot))
903
  demo.title = "RedmindGPT"
904
  #user_details for login page
905
- demo.launch(auth=[("lakshmi", "redmind"), ("arun", "redmind"), ("NewageGlobal", "Newage123$")])
 
821
  background-color: #8a92f7; /* Darker shade on hover */
822
  }
823
 
824
+ .gr-buttonbig {
825
+ background-color: #6366f1; /* Change to your desired button color */
826
+ color: white;
827
+ border-radius: 8px; /* Make the corners rounded */
828
+ border: none;
829
+ padding: 10px 20px;
830
+ font-size: 14px;
831
+ cursor: pointer;
832
+ }
833
+
834
+ .gr-buttonbig:hover {
835
+ background-color: #8a92f7; /* Darker shade on hover */
836
+ }
837
+
838
+
839
  /* Customizing the Logout link to be on the right */
840
  .logout-link {
841
  text-align: right;
 
874
  gr.Markdown("<div class='logout-link'><a href='/logout'><b>Logout</b></a></div>")
875
 
876
  with gr.Row():
877
+ sample_button = gr.Button("What is the expected receiving date and the status of ASN24081900001",elem_classes="gr-buttonbig")
878
+ sample_button1 = gr.Button("What are the active warehouses available",elem_classes="gr-buttonbig")
879
+ sample_button2 = gr.Button("Explain Pre-Receiving Yard Management",elem_classes="gr-buttonbig")
880
+ sample_button3 = gr.Button("Can you generate a pie chart with item names and quantities in warehouse WH",elem_classes="gr-buttonbig")
881
  sample_button4 = gr.Button("Analyze item name and quantity for different customers in a stacked bar chart for the warehouse WH & send email to [email protected]", elem_classes="gr-button")
882
 
883
  with gr.Row():
 
888
  message = gr.Textbox(show_label=False, container=False, placeholder="Please enter your question")
889
  with gr.Row():
890
  feedback_textbox = gr.Textbox(visible=False, show_label=False, container=False, placeholder="Please enter your feedback.")
891
+ submit_feedback_button = gr.Button("Submit Feedback", visible=False,elem_classes="gr-buttonbig")
892
  with gr.Column(scale=1):
893
  with gr.Row():
894
+ button = gr.Button("Submit", elem_id="submit",elem_classes="gr-buttonbig")
895
  # Button to stop the current processing
896
+ stop_button = gr.Button("Stop", elem_classes="gr-buttonbig")
897
+ #gr.ClearButton(message, elem_classes="gr-buttonbig")
898
 
899
  stop_button.click(stop_processing, [chatbot],[chatbot])
900
 
 
917
  #demo.unload(lambda: send_mail_with_history(chatbot))
918
  demo.title = "RedmindGPT"
919
  #user_details for login page
920
+ demo.launch(auth=[("lakshmi", "redmind"), ("arun", "redmind"), ("NewageGlobal", "Newage123$")], auth_message= "RedmindGPT")