Ramesh-vani commited on
Commit
6cc035b
·
1 Parent(s): c2f470c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(('', 8000), MyHandler)
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()