Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,6 +47,11 @@ STYLE = """
|
|
| 47 |
font-weight: bold;
|
| 48 |
font-size: large;
|
| 49 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
"""
|
| 51 |
|
| 52 |
get_local_storage = """
|
|
@@ -143,11 +148,12 @@ with gr.Blocks(css=STYLE, elem_id='container-col') as block:
|
|
| 143 |
gr.Markdown("GradioChat", elem_id="left-top")
|
| 144 |
|
| 145 |
with gr.Column(elem_id="left-pane"):
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
|
|
|
| 151 |
|
| 152 |
with gr.Column(scale=8):
|
| 153 |
chatbot = gr.Chatbot(elem_id='chatbot')
|
|
|
|
| 47 |
font-weight: bold;
|
| 48 |
font-size: large;
|
| 49 |
}
|
| 50 |
+
|
| 51 |
+
#chat-history-accordion {
|
| 52 |
+
background: transparent;
|
| 53 |
+
border: 0.8px !important;
|
| 54 |
+
}
|
| 55 |
"""
|
| 56 |
|
| 57 |
get_local_storage = """
|
|
|
|
| 148 |
gr.Markdown("GradioChat", elem_id="left-top")
|
| 149 |
|
| 150 |
with gr.Column(elem_id="left-pane"):
|
| 151 |
+
with gr.Accordion("Histories", elem_id="chat-history-accordion"):
|
| 152 |
+
first = gr.Button("1st", elem_classes=["custom-btn"])
|
| 153 |
+
second = gr.Button("2nd", elem_classes=["custom-btn"])
|
| 154 |
+
third = gr.Button("3rd", elem_classes=["custom-btn"])
|
| 155 |
+
fourth = gr.Button("4th", elem_classes=["custom-btn"])
|
| 156 |
+
fifth = gr.Button("5th", elem_classes=["custom-btn"])
|
| 157 |
|
| 158 |
with gr.Column(scale=8):
|
| 159 |
chatbot = gr.Chatbot(elem_id='chatbot')
|