Download run_dev.sh from ldm0612/Glossify: direct link, hf CLI and curl.
- Browser
- Download file 704 Bytes
-
https://huggingface.co/spaces/ldm0612/Glossify/resolve/main/run_dev.sh
- Command line
-
hf download hf://spaces/ldm0612/Glossify/run_dev.sh
-
curl -L -o run_dev.sh https://huggingface.co/spaces/ldm0612/Glossify/resolve/main/run_dev.sh
704 Bytes
| echo "Starting Glossify-PoC development servers..." | |
| # Function to kill background processes on exit | |
| cleanup() { | |
| echo "Stopping servers..." | |
| kill $BACKEND_PID $FRONTEND_PID 2>/dev/null | |
| exit | |
| } | |
| trap cleanup SIGINT SIGTERM | |
| # Start backend | |
| echo "Starting backend server..." | |
| cd backend | |
| conda activate BAI6 | |
| python app/main.py & | |
| BACKEND_PID=$! | |
| # Wait a moment for backend to start | |
| sleep 3 | |
| # Start frontend | |
| echo "Starting frontend server..." | |
| cd ../frontend | |
| npm run dev & | |
| FRONTEND_PID=$! | |
| echo "Backend running on http://localhost:5000" | |
| echo "Frontend running on http://localhost:3000" | |
| echo "Press Ctrl+C to stop both servers" | |
| # Wait for both processes | |
| wait $BACKEND_PID $FRONTEND_PID | |