mirror of https://github.com/tracel-ai/burn.git
12 lines
311 B
Python
12 lines
311 B
Python
import http.server
|
|
import socketserver
|
|
|
|
PORT = 8000
|
|
|
|
Handler = http.server.SimpleHTTPRequestHandler
|
|
|
|
with socketserver.TCPServer(("", PORT), Handler) as httpd:
|
|
print(f"Running local python HTTP server on port {PORT} ...")
|
|
print(f"Serving HTTP on http://localhost:{PORT}/ ...")
|
|
httpd.serve_forever()
|