Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,9 +20,9 @@ with gr.Blocks() as demo:
20
  chatbot = gr.Chatbot([], elem_id="chatbot").style(height=400)
21
  with gr.Row():
22
  with gr.Column(scale=4):
23
- txt = gr.Textbox(show_label=False, placeholder="Enter text and press enter").style(container=False)
24
  with gr.Column(scale=1):
25
- button = gr.Button("Generate")
26
  txt.submit(predict, [txt, state], [chatbot, state])
27
  button.click(predict, [txt, state], [chatbot, state])
28
  demo.queue().launch()
 
20
  chatbot = gr.Chatbot([], elem_id="chatbot").style(height=400)
21
  with gr.Row():
22
  with gr.Column(scale=4):
23
+ txt = gr.Textbox(show_label=False, placeholder="Enter text and press enter", api_name="Input").style(container=False)
24
  with gr.Column(scale=1):
25
+ button = gr.Button("Generate", api_name="Send")
26
  txt.submit(predict, [txt, state], [chatbot, state])
27
  button.click(predict, [txt, state], [chatbot, state])
28
  demo.queue().launch()