Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -703,9 +703,14 @@ def handle_dislike(data: gr.LikeData):
|
|
703 |
print("upvote")
|
704 |
return gr.update(visible=False), gr.update(visible=False)
|
705 |
|
706 |
-
|
|
|
|
|
707 |
with gr.Blocks(css=css) as demo:
|
708 |
-
gr.Markdown("<CENTER><
|
|
|
|
|
|
|
709 |
with gr.Row():
|
710 |
sample_button = gr.Button("What is the expected receiving date and the status of ASN24081900001", elem_classes="custom-button" , elem_id="button1")
|
711 |
sample_button1 = gr.Button("What are the active warehouses available", elem_classes="custom-button", elem_id="button2")
|
|
|
703 |
print("upvote")
|
704 |
return gr.update(visible=False), gr.update(visible=False)
|
705 |
|
706 |
+
def update_message(request: gr.Request):
|
707 |
+
return f"<h4 style='font-size: 22px; font-family: Calibri;'>Welcome, {request.username}</h4>"
|
708 |
+
|
709 |
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")
|