Spaces:
Paused
Paused
Commit ·
6cc035b
1
Parent(s): c2f470c
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,8 +42,8 @@ class MyHandler(BaseHTTPRequestHandler):
|
|
| 42 |
self.end_headers()
|
| 43 |
self.wfile.write(b'401: Unauthorized - Invalid API Key')
|
| 44 |
|
| 45 |
-
# Create an HTTP server and bind it to a specific port
|
| 46 |
-
httpd = HTTPServer(('',
|
| 47 |
|
| 48 |
# Start serving indefinitely
|
| 49 |
httpd.serve_forever()
|
|
|
|
| 42 |
self.end_headers()
|
| 43 |
self.wfile.write(b'401: Unauthorized - Invalid API Key')
|
| 44 |
|
| 45 |
+
# Create an HTTP server and bind it to a specific host and port
|
| 46 |
+
httpd = HTTPServer(('0.0.0.0', 7860), MyHandler)
|
| 47 |
|
| 48 |
# Start serving indefinitely
|
| 49 |
httpd.serve_forever()
|