Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def qnamodel(context,question):
|
|
14 |
|
15 |
gr.Interface(
|
16 |
qnamodel,
|
17 |
-
inputs=[gr.inputs.Textbox(lines=10, label="Pon el texto a analizar aquí",
|
18 |
-
outputs=[gr.outputs.Textbox(label="Respuesta"), gr.outputs.
|
19 |
title="Preguntas y respuestas",
|
20 |
).launch()
|
|
|
14 |
|
15 |
gr.Interface(
|
16 |
qnamodel,
|
17 |
+
inputs=[gr.inputs.Textbox(lines=10, label="Pon el texto a analizar aquí", default=context_default), gr.inputs.Textbox(lines=2, label="Pregunta", default=question_default)],
|
18 |
+
outputs=[gr.outputs.Textbox(label="Respuesta"), gr.outputs.HighlightedText(label="Scores")],
|
19 |
title="Preguntas y respuestas",
|
20 |
).launch()
|