Skip to content

Commit d421919

Browse files
authored
Update 01-basicConcepts.md
1 parent d33b3e4 commit d421919

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

_episodes/01-basicConcepts.md

+4
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)