Update app.py
Browse files
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://
|
| 909 |
-
print(f"--- Alternative documentation at http://
|
| 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="
|
| 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
|