Spaces:
Sleeping
Sleeping
Deploy Real Agent Army
Browse files- supervisor.py +1 -1
supervisor.py
CHANGED
|
@@ -257,7 +257,7 @@ class AgentHandler(http.server.BaseHTTPRequestHandler):
|
|
| 257 |
def start_web_server(agents, port=None):
|
| 258 |
"""Start the HTTP server in a separate thread"""
|
| 259 |
if port is None:
|
| 260 |
-
port = int(os.getenv('PORT',
|
| 261 |
try:
|
| 262 |
with socketserver.TCPServer(("0.0.0.0", port), AgentHandler) as httpd:
|
| 263 |
httpd.agents = agents
|
|
|
|
| 257 |
def start_web_server(agents, port=None):
|
| 258 |
"""Start the HTTP server in a separate thread"""
|
| 259 |
if port is None:
|
| 260 |
+
port = int(os.getenv('PORT', 7860)) # Use HF's default port
|
| 261 |
try:
|
| 262 |
with socketserver.TCPServer(("0.0.0.0", port), AgentHandler) as httpd:
|
| 263 |
httpd.agents = agents
|