Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,11 +28,12 @@ def respond(message, history):
|
|
| 28 |
return response['choices'][0]['message']['content'].strip()
|
| 29 |
|
| 30 |
with gr.Blocks() as chatbot:
|
| 31 |
-
with gr.
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
gr.
|
|
|
|
| 37 |
|
| 38 |
chatbot.launch()
|
|
|
|
| 28 |
return response['choices'][0]['message']['content'].strip()
|
| 29 |
|
| 30 |
with gr.Blocks() as chatbot:
|
| 31 |
+
with gr.Row():
|
| 32 |
+
with gr.Column():
|
| 33 |
+
name = gr.Textbox(label="Name")
|
| 34 |
+
submit_btn = gr.Button("Submit")
|
| 35 |
+
submit_btn.click(set_user_profile, inputs=name, outputs=[])
|
| 36 |
+
with gr.Column():
|
| 37 |
+
gr.ChatInterface(respond, type="messages")
|
| 38 |
|
| 39 |
chatbot.launch()
|