Spaces:
Sleeping
Sleeping
Download start.sh from Jamesb040/AI-Prompt-Creator-JSON-IV: direct link, hf CLI and curl.
- Browser
- Download file 425 Bytes
-
https://huggingface.co/spaces/Jamesb040/AI-Prompt-Creator-JSON-IV/resolve/main/start.sh
- Command line
-
hf download hf://spaces/Jamesb040/AI-Prompt-Creator-JSON-IV/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/Jamesb040/AI-Prompt-Creator-JSON-IV/resolve/main/start.sh
425 Bytes
| set -e | |
| echo "Starting llama.cpp server..." | |
| # The binary is located at /app/llama-server in the ggml-org/llama.cpp image | |
| /app/llama-server \ | |
| -m /app/SmolLM2-1.7B-Instruct-Q4_K_M.gguf \ | |
| --host 0.0.0.0 \ | |
| --port 8080 \ | |
| -t 2 \ | |
| -c 2048 \ | |
| --log-disable & | |
| echo "Waiting for server to initialize..." | |
| sleep 10 | |
| echo "Starting Gradio App..." | |
| # Explicitly use the venv's python | |
| /opt/venv/bin/python3 /app/app.py |