Skip to content

Commit 54982e9

Browse files
authored
Update 01-basicConcepts.md
1 parent 7174e56 commit 54982e9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

episodes/01-basicConcepts.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ Launch either colab or our Anaconda environment, depending on your setup. Try fo
7272

7373
```python
7474
from transformers import pipeline
75+
from transformers.utils import logging
76+
77+
#disable warning about optional authentication
78+
logging.set_verbosity_error()
7579

7680
text2text_generator = pipeline("text2text-generation")
7781
print(text2text_generator("question: What is 42 ? context: 42 is the answer to life, the universe and everything"))

0 commit comments

Comments
 (0)