tensorus commited on
Commit
d4ca86a
·
verified ·
1 Parent(s): 1fc4d1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -905,14 +905,14 @@ if __name__ == "__main__":
905
  if modules_ok:
906
  print(f"--- Starting Tensorus API Server (v{app.version} with Agent Placeholders) ---")
907
  print(f"--- Logging level set to: {logging.getLevelName(logger.getEffectiveLevel())} ---")
908
- print(f"--- Access API documentation at http://127.0.0.1:8000/docs ---")
909
- print(f"--- Alternative documentation at http://127.0.0.1:8000/redoc ---")
910
  print("--- Press CTRL+C to stop ---")
911
 
912
  # Use uvicorn to run the app
913
  uvicorn.run(
914
  "api:app", # Points to the 'app' instance in the 'api.py' file
915
- host="127.0.0.1",
916
  port=8000,
917
  reload=True, # Enable auto-reload for development (watches for file changes)
918
  log_level=logging.getLevelName(logger.getEffectiveLevel()).lower(), # Sync uvicorn log level
 
905
  if modules_ok:
906
  print(f"--- Starting Tensorus API Server (v{app.version} with Agent Placeholders) ---")
907
  print(f"--- Logging level set to: {logging.getLevelName(logger.getEffectiveLevel())} ---")
908
+ print(f"--- Access API documentation at http://0.0.0.0:8000/docs ---")
909
+ print(f"--- Alternative documentation at http://0.0.0.0:8000/redoc ---")
910
  print("--- Press CTRL+C to stop ---")
911
 
912
  # Use uvicorn to run the app
913
  uvicorn.run(
914
  "api:app", # Points to the 'app' instance in the 'api.py' file
915
+ host="0.0.0.0",
916
  port=8000,
917
  reload=True, # Enable auto-reload for development (watches for file changes)
918
  log_level=logging.getLevelName(logger.getEffectiveLevel()).lower(), # Sync uvicorn log level