wairiah commited on
Commit
24e23dc
·
verified ·
1 Parent(s): 60ad265

Deploy Real Agent Army

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