Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,14 +29,14 @@ with gr.Blocks() as app:
|
|
29 |
|
30 |
with gr.Row():
|
31 |
with gr.Column(scale=0.3):
|
32 |
-
username = gr.Textbox(show_label=False,placeholder='
|
33 |
with gr.Column(scale=1):
|
34 |
-
message = gr.Textbox(placeholder='
|
35 |
message.submit(fn=combinar,inputs=[username,message],outputs=chat)
|
36 |
message.submit(fn=vaciar,outputs=message)
|
37 |
|
38 |
|
39 |
-
boton = gr.Button('
|
40 |
boton.click(fn=combinar,inputs=[username,message],outputs=chat)
|
41 |
boton.click(fn=vaciar,outputs=message)
|
42 |
|
|
|
29 |
|
30 |
with gr.Row():
|
31 |
with gr.Column(scale=0.3):
|
32 |
+
username = gr.Textbox(show_label=False,placeholder='Your nickname')
|
33 |
with gr.Column(scale=1):
|
34 |
+
message = gr.Textbox(placeholder='Your message',show_label=False)
|
35 |
message.submit(fn=combinar,inputs=[username,message],outputs=chat)
|
36 |
message.submit(fn=vaciar,outputs=message)
|
37 |
|
38 |
|
39 |
+
boton = gr.Button('Send message',live=True)
|
40 |
boton.click(fn=combinar,inputs=[username,message],outputs=chat)
|
41 |
boton.click(fn=vaciar,outputs=message)
|
42 |
|