This repository has been archived on 2024-01-16. You can view files and clone it, but cannot push or open issues or pull requests.
huggingface-proxy/README.md

674 B

huggingface-proxy

Host a proxy server on Huggingface Spaces.

Setup

Space

  1. Create a new Space using ./space/Dockerfile.
  2. Upload your rathole client config to the space under the path ./rathole-client.toml
  3. Upload ./space/server.py and ./space/supervisord.conf
  4. "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