abhilash1910 commited on
Commit
079a6ae
1 Parent(s): 278f287

Initial Commit

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- print(answer)
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