Redmind commited on
Commit
02f0459
·
verified ·
1 Parent(s): f6fd3d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -685,6 +685,17 @@ css = """
685
  background-color: "purple";
686
  /* The rest of the CSS is similar to button1 */
687
  }
 
 
 
 
 
 
 
 
 
 
 
688
 
689
  """
690
 
@@ -710,7 +721,7 @@ with gr.Blocks(css=css) as demo:
710
  gr.Markdown("<CENTER><h1 style='font-size: 22px; font-family: Calibri;'>RedMind GPT</h1></CENTER>")
711
  m=gr.Markdown()
712
  demo.load(update_message, None, m)
713
- logout_button = gr.Button("Logout", link="/logout")
714
  with gr.Row():
715
  sample_button = gr.Button("What is the expected receiving date and the status of ASN24081900001", elem_classes="custom-button" , elem_id="button1")
716
  sample_button1 = gr.Button("What are the active warehouses available", elem_classes="custom-button", elem_id="button2")
 
685
  background-color: "purple";
686
  /* The rest of the CSS is similar to button1 */
687
  }
688
+ .logout-link {
689
+ position: absolute;
690
+ top: 10px;
691
+ right: 10px;
692
+ font-size: 14px;
693
+ color: #007BFF;
694
+ background: none;
695
+ border: none;
696
+ cursor: pointer;
697
+ text-decoration: underline;
698
+ }
699
 
700
  """
701
 
 
721
  gr.Markdown("<CENTER><h1 style='font-size: 22px; font-family: Calibri;'>RedMind GPT</h1></CENTER>")
722
  m=gr.Markdown()
723
  demo.load(update_message, None, m)
724
+ logout_button = gr.Button("Logout", link="/logout",elem_classes="logout-link")
725
  with gr.Row():
726
  sample_button = gr.Button("What is the expected receiving date and the status of ASN24081900001", elem_classes="custom-button" , elem_id="button1")
727
  sample_button1 = gr.Button("What are the active warehouses available", elem_classes="custom-button", elem_id="button2")