Download start.sh from trystine/Tell_Me: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/spaces/trystine/Tell_Me/resolve/main/start.sh
- Command line
-
hf download hf://spaces/trystine/Tell_Me/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/trystine/Tell_Me/resolve/main/start.sh
539 Bytes
| # 1. Start Ollama server in the background | |
| echo "Starting Ollama server..." | |
| ollama serve & | |
| # 2. Wait a few seconds for it to boot up | |
| sleep 5 | |
| # 3. Pull the specific model you want to use | |
| # *** IMPORTANT: Change 'llama3' if your app uses a different model! *** | |
| echo "Pulling the Ollama model..." | |
| ollama pull llama3 | |
| # 4. Start your Streamlit app | |
| echo "Starting Streamlit..." | |
| streamlit run fresh_app_v2.py \ | |
| --server.port=7860 \ | |
| --server.address=0.0.0.0 \ | |
| --server.enableXsrfProtection=false \ | |
| --server.enableCORS=false |