from http.server import HTTPServer, BaseHTTPRequestHandler class SimpleHTTPRequestHandler(BaseHTTPRequestHandler): def do_GET(self): self.send_response(200) self.send_header('Content-type', 'text/plain') self.end_headers() self.wfile.write(b'Main Ollama bridge is running!') def main(): # Set server address and port server_address = ('0.0.0.0', 7860) # Create an HTTP server httpd = HTTPServer(server_address, SimpleHTTPRequestHandler) # Start the server print('Starting server on port 7860...') httpd.serve_forever() if __name__ == "__main__": main()