Host an HTTP proxy server on Huggingface Spaces.
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.
Go to file
Cyberes d3e621ce66 upload code 2024-01-16 20:41:58 -07:00
keepalive upload code 2024-01-16 20:41:58 -07:00
space upload code 2024-01-16 20:41:58 -07:00
.gitignore upload code 2024-01-16 20:41:58 -07:00
README.md upload code 2024-01-16 20:41:58 -07:00

README.md

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