Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def predict(context,question):
|
|
40 |
# dense_duration = (dense_end_time - dense_start_time) * 1000
|
41 |
# dense_answer = dense_predictions['answer']
|
42 |
|
43 |
-
return sparse_answer,
|
44 |
|
45 |
md = """This prediction model is designed to answer a question about a given input text--reading comprehension. The model does not just answer questions in general -- it only works from the text that you provide. However, automated reading comprehension can be a valuable task.
|
46 |
|
|
|
40 |
# dense_duration = (dense_end_time - dense_start_time) * 1000
|
41 |
# dense_answer = dense_predictions['answer']
|
42 |
|
43 |
+
return sparse_answer,sparse_score,sparse_start,sparse_duration #,dense_answer,dense_duration
|
44 |
|
45 |
md = """This prediction model is designed to answer a question about a given input text--reading comprehension. The model does not just answer questions in general -- it only works from the text that you provide. However, automated reading comprehension can be a valuable task.
|
46 |
|