Download start.sh from sibikrish/cr-agent: direct link, hf CLI and curl.
- Browser
- Download file 967 Bytes
-
https://huggingface.co/spaces/sibikrish/cr-agent/resolve/main/start.sh
- Command line
-
hf download hf://spaces/sibikrish/cr-agent/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/sibikrish/cr-agent/resolve/main/start.sh
967 Bytes
| echo "========================================" | |
| echo " Multi-Agent AI System - Startup" | |
| echo "========================================" | |
| echo "" | |
| # Check if frontend dependencies are installed | |
| if [ ! -d "frontend/node_modules" ]; then | |
| echo "Installing frontend dependencies..." | |
| cd frontend | |
| npm install | |
| cd .. | |
| echo "" | |
| fi | |
| echo "Starting Backend Server..." | |
| uv run uvicorn main:app --reload & | |
| BACKEND_PID=$! | |
| sleep 3 | |
| echo "Starting Frontend Development Server..." | |
| cd frontend | |
| npm start & | |
| FRONTEND_PID=$! | |
| cd .. | |
| echo "" | |
| echo "========================================" | |
| echo " Services Started!" | |
| echo "========================================" | |
| echo " Backend: http://localhost:8000" | |
| echo " Frontend: http://localhost:3000" | |
| echo " API Docs: http://localhost:8000/docs" | |
| echo "========================================" | |
| echo "" | |
| echo "Press Ctrl+C to stop all services" | |
| # Wait for Ctrl+C | |
| trap "kill $BACKEND_PID $FRONTEND_PID; exit" INT | |
| wait | |