Simplify notebook to use existing setup.sh script
This commit is contained in:
parent
90c553280d
commit
fe27a413cb
1 changed files with 4 additions and 18 deletions
|
|
@ -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"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue