Unverified Commit 65be574a authored by Levent Serinol's avatar Levent Serinol Committed by GitHub
Browse files

fixed missing torch module import (#4305)

fixed missing torch module import in example usage code
parent 31e67dd1
...@@ -17,6 +17,7 @@ nlp({ ...@@ -17,6 +17,7 @@ nlp({
```python ```python
from transformers import AutoTokenizer, AutoModelForQuestionAnswering from transformers import AutoTokenizer, AutoModelForQuestionAnswering
import torch
tokenizer = AutoTokenizer.from_pretrained("lserinol/bert-turkish-question-answering") tokenizer = AutoTokenizer.from_pretrained("lserinol/bert-turkish-question-answering")
model = AutoModelForQuestionAnswering.from_pretrained("lserinol/bert-turkish-question-answering") model = AutoModelForQuestionAnswering.from_pretrained("lserinol/bert-turkish-question-answering")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment