Download entrypoint.sh from HelloHFV/qwen: direct link, hf CLI and curl.
- Browser
- Download file 429 Bytes
-
https://huggingface.co/spaces/HelloHFV/qwen/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/HelloHFV/qwen/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/HelloHFV/qwen/resolve/main/entrypoint.sh
429 Bytes
| set -eu | |
| mkdir -p /data | |
| init_json_file() { | |
| file_path="$1" | |
| default_content="$2" | |
| if [ ! -f "$file_path" ]; then | |
| printf '%s\n' "$default_content" > "$file_path" | |
| fi | |
| } | |
| init_json_file "${ACCOUNTS_FILE:-/data/accounts.json}" '[]' | |
| init_json_file "${USERS_FILE:-/data/users.json}" '[]' | |
| init_json_file "${CAPTURES_FILE:-/data/captures.json}" '[]' | |
| init_json_file "${CONFIG_FILE:-/data/config.json}" '{}' | |
| exec "$@" | |