Spaces:
Running
Running
File size: 1,731 Bytes
33d4721 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "II6F7ThkI10I"
},
"outputs": [],
"source": [
"#@title 🤗 AutoTrain\n",
"#@markdown In order to use this colab\n",
"#@markdown - Enter your [Hugging Face Write Token](https://huggingface.co/settings/tokens)\n",
"#@markdown - Enter your [ngrok auth token](https://dashboard.ngrok.com/get-started/your-authtoken)\n",
"huggingface_token = '' # @param {type:\"string\"}\n",
"ngrok_token = \"\" # @param {type:\"string\"}\n",
"\n",
"#@markdown\n",
"#@markdown - Attach appropriate accelerator `Runtime > Change runtime type > Hardware accelerator`\n",
"#@markdown - click `Runtime > Run all`\n",
"#@markdown - Follow the link to access the UI\n",
"#@markdown - Training happens inside this Google Colab\n",
"#@markdown - report issues / feature requests [here](https://github.com/huggingface/autotrain-advanced/issues)\n",
"\n",
"import os\n",
"os.environ[\"HF_TOKEN\"] = str(huggingface_token)\n",
"os.environ[\"NGROK_AUTH_TOKEN\"] = str(ngrok_token)\n",
"os.environ[\"AUTOTRAIN_LOCAL\"] = \"1\"\n",
"\n",
"!pip install -U autotrain-advanced > install_logs.txt 2>&1\n",
"!autotrain app --share"
]
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"gpuType": "T4",
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|