Spaces:
Runtime error
Runtime error
Alberto Carmona
commited on
Commit
·
0209bf9
1
Parent(s):
e8de746
Change the layout
Browse files
app.py
CHANGED
@@ -17,19 +17,24 @@ with gr.Blocks() as demo:
|
|
17 |
btn_extract_text.click(fn=update, inputs=inp_url, outputs=out_url_text)
|
18 |
|
19 |
# Summary section
|
|
|
20 |
btn_summarize = gr.Button("Elaborar resumen")
|
21 |
out_summary = gr.Textbox()
|
22 |
btn_summarize.click(fn=update, inputs=out_url_text, outputs=out_summary)
|
23 |
|
24 |
# Question generation section
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
|
|
|
|
|
|
33 |
|
34 |
# Question and answering
|
35 |
gr.Markdown("Haz preguntas sobre el contenido...")
|
|
|
17 |
btn_extract_text.click(fn=update, inputs=inp_url, outputs=out_url_text)
|
18 |
|
19 |
# Summary section
|
20 |
+
gr.Markdown("Puede obtener un resumen del texto extraído.")
|
21 |
btn_summarize = gr.Button("Elaborar resumen")
|
22 |
out_summary = gr.Textbox()
|
23 |
btn_summarize.click(fn=update, inputs=out_url_text, outputs=out_summary)
|
24 |
|
25 |
# Question generation section
|
26 |
+
gr.Markdown(
|
27 |
+
"Evalúe su conocimiento respondiendo preguntas generadas a partir de diferentes partes del texto extraído.")
|
28 |
+
with gr.Row():
|
29 |
+
with gr.Column():
|
30 |
+
btn_question_gen = gr.Button("Pregúntame algo sobre el contenido")
|
31 |
+
out_question_gen = gr.Textbox()
|
32 |
+
btn_question_gen.click(fn=update, inputs=out_url_text,
|
33 |
+
outputs=out_question_gen)
|
34 |
+
with gr.Column():
|
35 |
+
btn_question_gen = gr.Button("Muestra contexto de la respuesta")
|
36 |
+
out_question_answer = gr.Textbox()
|
37 |
+
btn_question_gen.click(fn=update, outputs=out_question_answer)
|
38 |
|
39 |
# Question and answering
|
40 |
gr.Markdown("Haz preguntas sobre el contenido...")
|