Karzan commited on
Commit
3432e62
·
verified ·
1 Parent(s): 04ea05b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ pipe = pipeline("question-answering", model=model_id,max_answer_len=300,handle_i
8
 
9
  def func(context, question):
10
  result = pipe(question = question, context=context)
11
- return result['answer']
12
 
13
  interface = gr.Interface(
14
  fn=func,
 
8
 
9
  def func(context, question):
10
  result = pipe(question = question, context=context)
11
+ return result['answer'], result['score']
12
 
13
  interface = gr.Interface(
14
  fn=func,