Spaces:
Sleeping
Sleeping
Update UI
Browse files
app.py
CHANGED
|
@@ -83,14 +83,15 @@ with gr.Blocks() as demo:
|
|
| 83 |
with gr.Row():
|
| 84 |
rubrica = gr.Textbox(lines=5, label="Escribe la r煤brica que quieres usar para generar la devoluci贸n.")
|
| 85 |
with gr.Row():
|
| 86 |
-
with gr.
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
btn = gr.Button("Enviar")
|
| 91 |
-
clear = gr.ClearButton(components=[msg, chatbot], value="Borrar chat")
|
| 92 |
with gr.Row():
|
| 93 |
-
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
btn.click(respond, inputs=[msg, rubrica, chatbot], outputs=[msg, chatbot])
|
| 96 |
msg.submit(respond, inputs=[msg, rubrica,chatbot], outputs=[msg, chatbot]) #Press enter to submit
|
|
|
|
| 83 |
with gr.Row():
|
| 84 |
rubrica = gr.Textbox(lines=5, label="Escribe la r煤brica que quieres usar para generar la devoluci贸n.")
|
| 85 |
with gr.Row():
|
| 86 |
+
with gr.Column(scale=4):
|
| 87 |
+
msg = gr.Textbox(lines=5, label="Texto de entrada para ser evaluado y generar devoluci贸n.")
|
| 88 |
+
with gr.Column(scale=1):
|
| 89 |
+
btn = gr.Button("Enviar")
|
|
|
|
|
|
|
| 90 |
with gr.Row():
|
| 91 |
+
with gr.Column(scale=4):
|
| 92 |
+
chatbot = gr.Chatbot(lines=10) #just to fit the notebook
|
| 93 |
+
with gr.Column(scale=1):
|
| 94 |
+
clear = gr.ClearButton(components=[msg, chatbot], value="Borrar chat")
|
| 95 |
|
| 96 |
btn.click(respond, inputs=[msg, rubrica, chatbot], outputs=[msg, chatbot])
|
| 97 |
msg.submit(respond, inputs=[msg, rubrica,chatbot], outputs=[msg, chatbot]) #Press enter to submit
|