From 057f3b96286fb610b658e7b54353f54267d1eae3 Mon Sep 17 00:00:00 2001 From: Leo Borcherding Date: Tue, 17 Feb 2026 13:27:05 -0600 Subject: [PATCH] Remove unnecessary if statement for token check --- Unsloth_Studio_Colab.ipynb | 48 +++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 26 deletions(-) diff --git a/Unsloth_Studio_Colab.ipynb b/Unsloth_Studio_Colab.ipynb index bedaea85c0..19e72c20d7 100644 --- a/Unsloth_Studio_Colab.ipynb +++ b/Unsloth_Studio_Colab.ipynb @@ -3,32 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "27e68f91", - "metadata": {}, - "outputs": [], - "source": [ - "# ===========================================\n", - "# Setup: Clone repo and run setup\n", - "# ===========================================\n", - "\n", - "# Clone repository with GitHub token\n", - "import os\n", - "github_token = os.environ.get('GITHUB_TOKEN', '')\n", - "if github_token:\n", - " !git clone -b feature/colab-notebook https://{github_token}@github.com/unslothai/new-ui-prototype.git\n", - "else:\n", - " !git clone -b feature/colab-notebook https://github.com/unslothai/new-ui-prototype.git\n", - "%cd /content/new-ui-prototype\n", - "\n", - "# Run setup script\n", - "!chmod +x setup.sh\n", - "!./setup.sh" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "26b0e164", + "id": "f04a9b46", "metadata": {}, "outputs": [], "source": [ @@ -48,6 +23,27 @@ "print(\"✅ Token stored\")" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "27e68f91", + "metadata": {}, + "outputs": [], + "source": [ + "# ===========================================\n", + "# Setup: Clone repo and run setup\n", + "# ===========================================\n", + "\n", + "import os\n", + "github_token = os.environ['GITHUB_TOKEN']\n", + "!git clone -b feature/colab-notebook https://{github_token}@github.com/unslothai/new-ui-prototype.git\n", + "%cd /content/new-ui-prototype\n", + "\n", + "# Run setup script\n", + "!chmod +x setup.sh\n", + "!./setup.sh" + ] + }, { "cell_type": "code", "execution_count": null,