Spaces:
Sleeping
Sleeping
Download app1/app.py from pvanand/template_streamlit_docker: direct link, hf CLI and curl.
- Browser
- Download file 222 Bytes
-
https://huggingface.co/spaces/pvanand/template_streamlit_docker/resolve/main/app1/app.py
- Command line
-
hf download hf://spaces/pvanand/template_streamlit_docker/app1/app.py
-
curl -L -o app.py https://huggingface.co/spaces/pvanand/template_streamlit_docker/resolve/main/app1/app.py
222 Bytes
| import http.server | |
| import socketserver | |
| PORT = 8000 | |
| Handler = http.server.SimpleHTTPRequestHandler | |
| with socketserver.TCPServer(("", PORT), Handler) as httpd: | |
| print(f"Serving at port {PORT}") | |
| httpd.serve_forever() |