mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-29 16:30:24 +08:00
dev
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
row,text,label
|
||||
1,some example data,1
|
||||
2,some more data,0
|
||||
|
@@ -48,11 +48,12 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"# uncomment below cell to install required packages if running in Google Colab.\n",
|
||||
"!pip install transformers\n",
|
||||
"# if needed you can git clone the repo\n",
|
||||
"!git clone https://github.com/andrewm4894/Open-Assistant.git\n",
|
||||
"!cd Open-Assistant/notebooks/example"
|
||||
"# uncomment and run below lines to set up if running in colab\n",
|
||||
"#%%bash\n",
|
||||
"# git clone https://github.com/andrewm4894/Open-Assistant.git\n",
|
||||
"# git checkout example-notebook\n",
|
||||
"# cd Open-Assistant/notebooks/example\n",
|
||||
"# pip install -r requirements.txt"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -87,6 +88,7 @@
|
||||
],
|
||||
"source": [
|
||||
"# import required packages\n",
|
||||
"import pandas as pd\n",
|
||||
"from transformers import pipeline"
|
||||
]
|
||||
},
|
||||
@@ -114,25 +116,8 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Do cool stuff here"
|
||||
]
|
||||
},
|
||||
{
|
||||
"attachments": {},
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## Binder"
|
||||
]
|
||||
},
|
||||
{
|
||||
"attachments": {},
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"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.\n",
|
||||
"\n",
|
||||
"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](https://mybinder.readthedocs.io/en/latest/config_files.html) for more information."
|
||||
"# Do cool stuff here\n",
|
||||
"df = pd.read_csv(\"data/data.csv\")"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
transformers
|
||||
Reference in New Issue
Block a user