diff --git a/Unsloth_Studio_Colab.ipynb b/Unsloth_Studio_Colab.ipynb index b4ac1a5186..e5d4f7f058 100644 --- a/Unsloth_Studio_Colab.ipynb +++ b/Unsloth_Studio_Colab.ipynb @@ -11,8 +11,13 @@ "# Setup: Clone repo and build frontend\n", "# ===========================================\n", "\n", - "# Clone repository\n", - "!git clone https://github.com/unslothai/new-ui-prototype.git\n", + "# Clone repository with GitHub token\n", + "import os\n", + "github_token = os.environ.get('GITHUB_TOKEN', '')\n", + "if github_token:\n", + " !git clone https://{github_token}@github.com/unslothai/new-ui-prototype.git\n", + "else:\n", + " !git clone https://github.com/unslothai/new-ui-prototype.git\n", "%cd /content/new-ui-prototype\n", "\n", "# Install Node.js 20.x\n", @@ -34,6 +39,29 @@ "print(\"✅ Python dependencies installed\")" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "26b0e164", + "metadata": {}, + "outputs": [], + "source": [ + "# ===========================================\n", + "# GitHub Authentication (Private Repo)\n", + "# ===========================================\n", + "from getpass import getpass\n", + "import os\n", + "\n", + "print(\"🔐 GitHub Token Required\")\n", + "print(\"Get token: https://github.com/settings/tokens\")\n", + "print(\"Scope needed: 'repo'\")\n", + "print(\"-\" * 50)\n", + "\n", + "github_token = getpass(\"Enter GitHub Token: \")\n", + "os.environ['GITHUB_TOKEN'] = github_token\n", + "print(\"✅ Token stored\")" + ] + }, { "cell_type": "code", "execution_count": null,