Spaces:
Runtime error
Runtime error
Commit
·
079a6ae
1
Parent(s):
278f287
Initial Commit
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def inference(question,context):
|
|
24 |
answer_start=torch.argmax(start_)
|
25 |
answer_end=torch.argmax(end_)+1
|
26 |
answer=tokenizer.convert_tokens_to_string(tokenizer.convert_ids_to_tokens(input_ids[answer_start:answer_end]))
|
27 |
-
|
28 |
|
29 |
|
30 |
|
|
|
24 |
answer_start=torch.argmax(start_)
|
25 |
answer_end=torch.argmax(end_)+1
|
26 |
answer=tokenizer.convert_tokens_to_string(tokenizer.convert_ids_to_tokens(input_ids[answer_start:answer_end]))
|
27 |
+
return answer
|
28 |
|
29 |
|
30 |
|