Files
Open-Assistant/notebooks/example/example.ipynb
T

3.8 KiB

Example Notebook

Open In Colab

In [7]:
# uncomment and run below lines to set up if running in colab
# !git clone https://github.com/LAION-AI/Open-Assistant.git
# %cd Open-Assistant/notebooks/example
# !pip install -r requirements.txt

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 [8]:
# import required packages
import pandas as pd
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 [10]:
# Do cool stuff here
df = pd.read_csv("data/data.csv")
df.head()
Out [10]:
row text label
0 1 some example data 1
1 2 some more data 0