Files
Open-Assistant/notebooks/example/example.ipynb
T
2023-01-07 23:20:04 +00:00

2.9 KiB

Open In Colab

In [ ]:
# uncomment below cell to install required packages if running in Google Colab.
#!pip install transformers

Example Notebook

Try to add a markdown section to the notebook that explains what the notebook is about and what it does. This will help people understand what the notebook is for and how to use it.

In [ ]:
# import required packages
from transformers import pipeline

Use Headings

(it will help with link sharing to specific sections of the notebook)

Make fancy markdown cells if you want.

In [2]:
# Do cool stuff here

Binder

We want to have every notebook folder be easily runnable on Binder. This means that every notebook folder should have a requirements.txt file that contains all the dependencies for the notebook. This is so that Binder can install all the dependencies for the notebook when it is run.

If you have more complex dependencies then there are a number of ways to add additional configuration files in the folder that Binder will use to install the dependencies. See the Binder documentation for more information.