Kimis Perros
commited on
Commit
·
35cedd1
1
Parent(s):
7951e0b
Updated app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,9 @@ def answer_question(context: str, question: str) -> str:
|
|
| 34 |
context=context.strip(),
|
| 35 |
answer_texts=[],
|
| 36 |
answer_starts=[],
|
| 37 |
-
|
|
|
|
|
|
|
| 38 |
)
|
| 39 |
|
| 40 |
predictions = model.predict({"demo": example})
|
|
|
|
| 34 |
context=context.strip(),
|
| 35 |
answer_texts=[],
|
| 36 |
answer_starts=[],
|
| 37 |
+
# TODO - treat this more systematically accounting for inference;
|
| 38 |
+
# setting is_impossible to True since no ground truth is available for an unknown Q
|
| 39 |
+
is_impossible=True,
|
| 40 |
)
|
| 41 |
|
| 42 |
predictions = model.predict({"demo": example})
|