{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# Example Notebook" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "[](https://colab.research.google.com/github/LAION-AI/Open-Assistant/blob/example-notebook/notebooks/example/example.ipynb)" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "# uncomment and run below lines to set up if running in colab\n", "# !git clone https://github.com/LAION-AI/Open-Assistant.git\n", "# %cd Open-Assistant/notebooks/example\n", "# !pip install -r requirements.txt" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "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." ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "# import required packages\n", "import pandas as pd\n", "from transformers import pipeline" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "## Use Headings\n", "\n", "(it will help with link sharing to specific sections of the notebook)" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "Make fancy markdown cells if you want." ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | row | \n", "text | \n", "label | \n", "
|---|---|---|---|
| 0 | \n", "1 | \n", "some example data | \n", "1 | \n", "
| 1 | \n", "2 | \n", "some more data | \n", "0 | \n", "