gcapde commited on
Commit
de44411
1 Parent(s): e0bd9bd
Files changed (1) hide show
  1. app.py +8 -7
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.Row():
87
- with gr.Column(scale=4):
88
- msg = gr.Textbox(lines=5, label="Texto de entrada para ser evaluado y generar devolución.")
89
- with gr.Column(scale=1):
90
- btn = gr.Button("Enviar")
91
- clear = gr.ClearButton(components=[msg, chatbot], value="Borrar chat")
92
  with gr.Row():
93
- chatbot = gr.Chatbot(lines=10) #just to fit the notebook
 
 
 
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