Spaces:
Runtime error
Runtime error
diogocarapito
commited on
Commit
•
63d1441
1
Parent(s):
6f3ab69
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def q_and_a(text):
|
|
13 |
'question': text,
|
14 |
'context': context
|
15 |
}
|
16 |
-
return pipe(query)
|
17 |
|
18 |
interface = gr.Interface(
|
19 |
fn=q_and_a,
|
|
|
13 |
'question': text,
|
14 |
'context': context
|
15 |
}
|
16 |
+
return pipe(query)['answer']
|
17 |
|
18 |
interface = gr.Interface(
|
19 |
fn=q_and_a,
|