Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def answer_question(question):
|
|
21 |
# Obtener la respuesta del modelo
|
22 |
result = nlp(question=question, context=context)
|
23 |
# Retornar la respuesta encontrada
|
24 |
-
return result['answer']
|
25 |
|
26 |
# Definir la interfaz Gradio
|
27 |
iface = gr.Interface(fn=answer_question,
|
|
|
21 |
# Obtener la respuesta del modelo
|
22 |
result = nlp(question=question, context=context)
|
23 |
# Retornar la respuesta encontrada
|
24 |
+
return result['answer', 'score', 'start', 'end']
|
25 |
|
26 |
# Definir la interfaz Gradio
|
27 |
iface = gr.Interface(fn=answer_question,
|