import http.server import ssl #httpd = http.server.HTTPServer(('localhost', 4000), http.server.SimpleHTTPRequestHandler) httpd = http.server.HTTPServer(('0.0.0.0', 4000), http.server.SimpleHTTPRequestHandler) #httpd.socket = ssl.wrap_socket(httpd.socket, certfile='./server.pem', server_side=True) print("Serving on http://localhost:4000") httpd.serve_forever() #todos : # will need to include background fetch api (pwa ) to download the audio file in the background # add speech synthesis api ()to generate the audio as alternative to generation vio openAI #use share target (pwa) so that pages can be shared to the app