Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ model = QuestionAnsweringModel(
|
|
6 |
constants.MODEL_TYPE, constants.MODEL_NAME, use_cuda=constants.USE_CUDA
|
7 |
)
|
8 |
def question_answer(context, question):
|
9 |
-
|
10 |
{
|
11 |
"context": context,
|
12 |
"qas": [
|
|
|
6 |
constants.MODEL_TYPE, constants.MODEL_NAME, use_cuda=constants.USE_CUDA
|
7 |
)
|
8 |
def question_answer(context, question):
|
9 |
+
to_predict = [
|
10 |
{
|
11 |
"context": context,
|
12 |
"qas": [
|