michal-stefanik commited on
Commit
e09c0df
1 Parent(s): 9b09145

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -40,7 +40,7 @@ inputs = tokenizer(question, context, return_tensors="pt")
40
  outputs = model(**inputs)
41
  start_position = outputs.start_logits[0].argmax()
42
  end_position = outputs.end_logits[0].argmax()
43
- answer_ids = tokenizer.decode(inputs["input_ids"][0][start_position:end_position])
44
 
45
  print("Answer:")
46
  print(tokenizer.decode(answer_ids))
 
40
  outputs = model(**inputs)
41
  start_position = outputs.start_logits[0].argmax()
42
  end_position = outputs.end_logits[0].argmax()
43
+ answer_ids = inputs["input_ids"][0][start_position:end_position]
44
 
45
  print("Answer:")
46
  print(tokenizer.decode(answer_ids))