fixed missing torch module import (#4305)

fixed missing torch module import in example usage code
This commit is contained in:
Levent Serinol 2020-05-12 15:34:17 +03:00 committed by GitHub
parent 31e67dd19f
commit 65be574aec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@ nlp({
```python
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
import torch
tokenizer = AutoTokenizer.from_pretrained("lserinol/bert-turkish-question-answering")
model = AutoModelForQuestionAnswering.from_pretrained("lserinol/bert-turkish-question-answering")