Simplify notebook to use existing setup.sh script

This commit is contained in:
Leo Borcherding 2026-02-17 12:54:07 -06:00
commit 2c5e0ce606

View file

@ -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"
]
},
{