Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -612,7 +612,7 @@ def handle_dislike(data: gr.LikeData):
|
|
| 612 |
return gr.update(visible=False), gr.update(visible=False)
|
| 613 |
|
| 614 |
def update_message(request: gr.Request):
|
| 615 |
-
return f"<
|
| 616 |
|
| 617 |
# CSS for styling the buttons and other elements
|
| 618 |
css = """
|
|
@@ -643,7 +643,7 @@ css = """
|
|
| 643 |
text-decoration: none;
|
| 644 |
font-size: 16px;
|
| 645 |
}
|
| 646 |
-
|
| 647 |
width: 800px; /* Adjust width as needed */
|
| 648 |
height: 600px; /* Adjust height as needed */
|
| 649 |
}
|
|
@@ -653,7 +653,7 @@ css = """
|
|
| 653 |
"""
|
| 654 |
|
| 655 |
with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
| 656 |
-
gr.HTML("<CENTER><h1 style='font-size:
|
| 657 |
with gr.Row():
|
| 658 |
m = gr.Markdown()
|
| 659 |
demo.load(update_message, None, m)
|
|
@@ -669,7 +669,7 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
| 669 |
sample_button4 = gr.Button("I want to analyze item name and quantity for different customers in a stacked bar chart for the warehouse WH", elem_classes="gr-button")
|
| 670 |
|
| 671 |
with gr.Row():
|
| 672 |
-
chatbot = gr.Chatbot(label="Ask a question about the API, Database, a Document or Warehouse inventory analysis.",
|
| 673 |
|
| 674 |
with gr.Row():
|
| 675 |
with gr.Column(scale=2):
|
|
|
|
| 612 |
return gr.update(visible=False), gr.update(visible=False)
|
| 613 |
|
| 614 |
def update_message(request: gr.Request):
|
| 615 |
+
return f"<h2 style=' font-family: Calibri;'>Welcome, {request.username}</h4>"
|
| 616 |
|
| 617 |
# CSS for styling the buttons and other elements
|
| 618 |
css = """
|
|
|
|
| 643 |
text-decoration: none;
|
| 644 |
font-size: 16px;
|
| 645 |
}
|
| 646 |
+
.chatbot {
|
| 647 |
width: 800px; /* Adjust width as needed */
|
| 648 |
height: 600px; /* Adjust height as needed */
|
| 649 |
}
|
|
|
|
| 653 |
"""
|
| 654 |
|
| 655 |
with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
| 656 |
+
gr.HTML("<CENTER><B><h1 style='font-size:30px; font-family: Calibri;'>RedMind GPT</h1></B></CENTER>")
|
| 657 |
with gr.Row():
|
| 658 |
m = gr.Markdown()
|
| 659 |
demo.load(update_message, None, m)
|
|
|
|
| 669 |
sample_button4 = gr.Button("I want to analyze item name and quantity for different customers in a stacked bar chart for the warehouse WH", elem_classes="gr-button")
|
| 670 |
|
| 671 |
with gr.Row():
|
| 672 |
+
chatbot = gr.Chatbot(label="Ask a question about the API, Database, a Document or Warehouse inventory analysis.",elem_classes="chatbot")
|
| 673 |
|
| 674 |
with gr.Row():
|
| 675 |
with gr.Column(scale=2):
|