fixed missing torch module import (#4305)
fixed missing torch module import in example usage code
This commit is contained in:
1 parent
31e67dd19f
commit
65be574aec
1 file changed
+1
@@ -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")
|
||||||
|
|||||||
Reference in new issue
Block a user