Spaces:
Running
on
T4
Running
on
T4
BillBojangeles2000
commited on
Commit
•
fad93de
1
Parent(s):
8520bf2
Update app.py
Browse files
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()
|