kaitwithkwk commited on
Commit
d1ecb03
·
verified ·
1 Parent(s): 23c4f16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
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.Column():
32
- name = gr.Textbox(label="Name")
33
- submit_btn = gr.Button("Submit")
34
- submit_btn.click(set_user_profile, inputs=name, outputs=[])
35
- with gr.Column():
36
- gr.ChatInterface(respond, type="messages")
 
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()