Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -150,7 +150,7 @@ def get_qa_nbest(input_ids, start_logits, end_logits, seq_len, n_best_size=20, m
|
|
| 150 |
|
| 151 |
return nbest_json, score_diff
|
| 152 |
|
| 153 |
-
def inference(
|
| 154 |
inputs = tokenizer(
|
| 155 |
question,
|
| 156 |
context,
|
|
|
|
| 150 |
|
| 151 |
return nbest_json, score_diff
|
| 152 |
|
| 153 |
+
def inference(context, question reference):
|
| 154 |
inputs = tokenizer(
|
| 155 |
question,
|
| 156 |
context,
|