import os

from http.server import HTTPServer, SimpleHTTPRequestHandler

PORT=8000


def main():
    os.chdir("public")
    server_address = ('', PORT)
    httpd = HTTPServer(server_address, SimpleHTTPRequestHandler)
    print(f"Server: http://localhost:{PORT}")
    httpd.serve_forever()

import os

from http.server import HTTPServer, SimpleHTTPRequestHandler

PORT=8000


def main():
    os.chdir("public")
    server_address = ('', PORT)
    httpd = HTTPServer(server_address, SimpleHTTPRequestHandler)
    print(f"Server: http://localhost:{PORT}")
    httpd.serve_forever()
