Spaces:
Sleeping
Sleeping
Download start.py from HSR-DeepThink/hypolistic: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/spaces/HSR-DeepThink/hypolistic/resolve/main/start.py
- Command line
-
hf download hf://spaces/HSR-DeepThink/hypolistic/start.py
-
curl -L -o start.py https://huggingface.co/spaces/HSR-DeepThink/hypolistic/resolve/main/start.py
478 Bytes
| from http.server import HTTPServer, BaseHTTPRequestHandler | |
| import threading | |
| import runpy | |
| class HealthHandler(BaseHTTPRequestHandler): | |
| def do_GET(self): | |
| self.send_response(200) | |
| self.end_headers() | |
| self.wfile.write(b"OK") | |
| def log_message(self, format, *args): | |
| pass | |
| threading.Thread( | |
| target=HTTPServer(("0.0.0.0", 7860), HealthHandler).serve_forever, | |
| daemon=True, | |
| ).start() | |
| runpy.run_path("lishogi-bot.py", run_name="__main__") | |