xtts-castellano / app_old.py
sob111's picture
Update app_old.py
f7ccdd6 verified
raw
history blame
435 Bytes
from http.server import BaseHTTPRequestHandler, HTTPServer
class Handler(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header("Content-type", "text/plain; charset=utf-8")
self.end_headers()
self.wfile.write(b"ok")
if __name__ == "__main__":
server = HTTPServer(("0.0.0.0", 8080), Handler)
print("Servidor corriendo en puerto 8080")
server.serve_forever()