Redmind commited on
Commit
651bb1a
·
verified ·
1 Parent(s): c177ca7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +44 -3
app.py CHANGED
@@ -613,12 +613,53 @@ def handle_dislike(data: gr.LikeData):
613
 
614
  def update_message(request: gr.Request):
615
  return f"<h4 style='font-size: 22px; font-family: Calibri;'>Welcome, {request.username}</h4>"
616
-
617
- with gr.Blocks(theme=gr.themes.Soft()) as demo:#css=css) as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
618
  gr.Markdown("<CENTER><h1 style='font-size: 22px; font-family: Calibri;'>RedMind GPT</h1></CENTER>")
619
  m=gr.Markdown()
620
  demo.load(update_message, None, m)
621
- logout_button = gr.Button("Logout", link="/logout")
622
  with gr.Row():
623
  sample_button = gr.Button("What is the expected receiving date and the status of ASN24081900001")
624
  sample_button1 = gr.Button("What are the active warehouses available")
 
613
 
614
  def update_message(request: gr.Request):
615
  return f"<h4 style='font-size: 22px; font-family: Calibri;'>Welcome, {request.username}</h4>"
616
+ custom_css = """
617
+ .gr-button {
618
+ background-color: #6366f1;
619
+ color: white;
620
+ border-radius: 10px;
621
+ padding: 10px 20px;
622
+ font-size: 16px;
623
+ }
624
+
625
+ .gr-input, .gr-markdown {
626
+ font-family: 'Arial', sans-serif;
627
+ border-radius: 10px;
628
+ padding: 10px;
629
+ border: 1px solid #ddd;
630
+ margin-bottom: 20px;
631
+ }
632
+
633
+ .gr-markdown {
634
+ background-color: #f7f7f7;
635
+ }
636
+
637
+ .gr-row {
638
+ justify-content: space-between;
639
+ }
640
+
641
+ .gr-column {
642
+ display: flex;
643
+ flex-direction: column;
644
+ justify-content: space-between;
645
+ }
646
+ .logout-button {
647
+ position: absolute;
648
+ top: 20px;
649
+ right: 20px;
650
+ background: none;
651
+ border: none;
652
+ color: #6366f1;
653
+ font-size: 14px;
654
+ text-decoration: underline;
655
+ cursor: pointer;
656
+ }
657
+ """
658
+ with gr.Blocks(theme=gr.themes.Soft(), css=custom_css) as demo:
659
  gr.Markdown("<CENTER><h1 style='font-size: 22px; font-family: Calibri;'>RedMind GPT</h1></CENTER>")
660
  m=gr.Markdown()
661
  demo.load(update_message, None, m)
662
+ logout_button = gr.Button("Logout", link="/logout", elem_id="logout-button")
663
  with gr.Row():
664
  sample_button = gr.Button("What is the expected receiving date and the status of ASN24081900001")
665
  sample_button1 = gr.Button("What are the active warehouses available")