Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -118,7 +118,7 @@ with gr.Blocks() as demo:
|
|
| 118 |
|
| 119 |
with gr.Row():
|
| 120 |
with gr.Column(scale=2):
|
| 121 |
-
chatbot = gr.Chatbot([{"role": "user", "content": "Hello"}, {"role": "assistant", "content": "Hi"}], label="Chatbot")
|
| 122 |
chat_btn = gr.Button("Add messages")
|
| 123 |
|
| 124 |
def chat(history):
|
|
@@ -141,4 +141,4 @@ with gr.Blocks() as demo:
|
|
| 141 |
|
| 142 |
|
| 143 |
if __name__ == "__main__":
|
| 144 |
-
demo.queue().launch(theme='Nymbo/Alyx_Theme')
|
|
|
|
| 118 |
|
| 119 |
with gr.Row():
|
| 120 |
with gr.Column(scale=2):
|
| 121 |
+
chatbot = gr.Chatbot(value=[{"role": "user", "content": "Hello"}, {"role": "assistant", "content": "Hi"}], type="messages", label="Chatbot")
|
| 122 |
chat_btn = gr.Button("Add messages")
|
| 123 |
|
| 124 |
def chat(history):
|
|
|
|
| 141 |
|
| 142 |
|
| 143 |
if __name__ == "__main__":
|
| 144 |
+
demo.queue().launch(theme='Nymbo/Alyx_Theme')
|