mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
fixed missing torch module import (#4305)
fixed missing torch module import in example usage code
This commit is contained in:
parent
31e67dd19f
commit
65be574aec
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user