Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|