Antonio49 commited on
Commit
928ee25
1 Parent(s): a7be5d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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,