Cyberes d3e621ce66 | ||
---|---|---|
keepalive | ||
space | ||
.gitignore | ||
README.md |
README.md
huggingface-proxy
Host a proxy server on Huggingface Spaces.
Setup
Space
- Create a new Space using
./space/Dockerfile
. - Upload your rathole client config to the space under the path
./rathole-client.toml
- Upload
./space/server.py
and./space/supervisord.conf
- "Factory Reboot" the space to get it to rebuild.
Keep Alive
On a local machine, run the keep alive script to prevent Huggingface from stopping your space due to "inactivity". You'll have to create a write API key on your account and save your cookies to cookies.txt
.
python3 ./keepalive/keepalive.py --token hf_XXX --username XXX --cookies ./cookies.txt --headless