Download start.sh from Akash297/TEXTY: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/spaces/Akash297/TEXTY/resolve/main/start.sh
- Command line
-
hf download hf://spaces/Akash297/TEXTY/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/Akash297/TEXTY/resolve/main/start.sh
512 Bytes
| # Create the necessary directory and set permissions for Ollama | |
| mkdir -p /app/.ollama | |
| chmod 777 /app/.ollama | |
| # Start Ollama in the background | |
| echo "Starting Ollama..." | |
| ollama serve & | |
| # Wait for Ollama to be ready | |
| echo "Waiting for Ollama to be ready..." | |
| until curl --silent --fail http://localhost:7860; do | |
| echo "Waiting for Ollama to be ready..." | |
| sleep 5 | |
| done | |
| # Ollama is ready, now start Flask app | |
| echo "Ollama is ready, starting Flask app..." | |
| gunicorn -w 2 -b 0.0.0.0:7860 app.dip:app | |