Download setup.sh from ldm0612/Glossify: direct link, hf CLI and curl.
- Browser
- Download file 716 Bytes
-
https://huggingface.co/spaces/ldm0612/Glossify/resolve/main/setup.sh
- Command line
-
hf download hf://spaces/ldm0612/Glossify/setup.sh
-
curl -L -o setup.sh https://huggingface.co/spaces/ldm0612/Glossify/resolve/main/setup.sh
716 Bytes
| echo "Setting up Glossify-PoC..." | |
| # Backend setup | |
| echo "Setting up backend..." | |
| cd backend | |
| conda activate BAI6 | |
| pip install -r requirements.txt | |
| cp env.example .env | |
| echo "Backend setup complete. Don't forget to set your OPENAI_API_KEY in .env" | |
| # Frontend setup | |
| echo "Setting up frontend..." | |
| cd ../frontend | |
| npm install | |
| cp env.local.example .env.local | |
| echo "Frontend setup complete. Don't forget to set your NEXT_PUBLIC_API_URL in .env.local" | |
| echo "Setup complete!" | |
| echo "" | |
| echo "To run the application:" | |
| echo "1. Start the backend: cd backend && source venv/bin/activate && python app/main.py" | |
| echo "2. Start the frontend: cd frontend && npm run dev" | |
| echo "3. Open http://localhost:3000 in your browser" | |