Download app/start.sh from Akash297/TEXTY: direct link, hf CLI and curl.
- Browser
- Download file 318 Bytes
-
https://huggingface.co/spaces/Akash297/TEXTY/resolve/main/app/start.sh
- Command line
-
hf download hf://spaces/Akash297/TEXTY/app/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/Akash297/TEXTY/resolve/main/app/start.sh
318 Bytes
| # Wait for Ollama to start | |
| echo "Waiting for Ollama to start..." | |
| until curl --silent --fail http://localhost:7860; do | |
| echo "Waiting for Ollama to be ready..." | |
| sleep 5 | |
| done | |
| echo "Ollama is ready, starting Flask app..." | |
| # Start the Flask app with Gunicorn | |
| gunicorn -w 2 -b 0.0.0.0:7860 app.dip:app | |