diff --git a/Unsloth_Studio_Colab.ipynb b/Unsloth_Studio_Colab.ipynb index e5d4f7f058..4f4767aaac 100644 --- a/Unsloth_Studio_Colab.ipynb +++ b/Unsloth_Studio_Colab.ipynb @@ -8,7 +8,7 @@ "outputs": [], "source": [ "# ===========================================\n", - "# Setup: Clone repo and build frontend\n", + "# Setup: Clone repo and run setup\n", "# ===========================================\n", "\n", "# Clone repository with GitHub token\n", @@ -20,23 +20,9 @@ " !git clone https://github.com/unslothai/new-ui-prototype.git\n", "%cd /content/new-ui-prototype\n", "\n", - "# Install Node.js 20.x\n", - "!curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - > /dev/null 2>&1\n", - "!sudo apt-get install -y nodejs > /dev/null 2>&1\n", - "print(\"✅ Node.js installed\")\n", - "\n", - "# Build frontend\n", - "%cd studio/frontend\n", - "!npm install --silent\n", - "!npm run build\n", - "print(\"✅ Frontend built\")\n", - "\n", - "# Install Python dependencies\n", - "%cd /content/new-ui-prototype\n", - "!pip install -q unsloth\n", - "!pip install -q -r studio/backend/requirements.txt\n", - "!pip install -q huggingface_hub datasets python-jose[cryptography] passlib[bcrypt] python-multipart matplotlib pandas ujson\n", - "print(\"✅ Python dependencies installed\")" + "# Run setup script\n", + "!chmod +x setup.sh\n", + "!./setup.sh" ] }, {