mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-14 01:00:05 +08:00
3.8 KiB
3.8 KiB
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.txtIn [8]:
# import required packages
import pandas as pd
from transformers import pipelineIn [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 |