Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
|
@@ -1030,8 +1030,10 @@ if __name__ == "__main__":
|
|
| 1030 |
elif args.run:
|
| 1031 |
# Launch FastAPI which internally starts the loop
|
| 1032 |
port = int(os.getenv("PORT", 7860))
|
|
|
|
| 1033 |
uvicorn.run(app, host="0.0.0.0", port=port, log_config=LOGGING_CONFIG)
|
| 1034 |
else:
|
| 1035 |
# Default behavior: run FastAPI
|
| 1036 |
port = int(os.getenv("PORT", 7860))
|
|
|
|
| 1037 |
uvicorn.run(app, host="0.0.0.0", port=port, log_config=LOGGING_CONFIG)
|
|
|
|
| 1030 |
elif args.run:
|
| 1031 |
# Launch FastAPI which internally starts the loop
|
| 1032 |
port = int(os.getenv("PORT", 7860))
|
| 1033 |
+
print(f"[{datetime.now().isoformat()}] BINDING UVICORN ON PORT {port} WITH EXPLICIT STDOUT LOGGING...", flush=True)
|
| 1034 |
uvicorn.run(app, host="0.0.0.0", port=port, log_config=LOGGING_CONFIG)
|
| 1035 |
else:
|
| 1036 |
# Default behavior: run FastAPI
|
| 1037 |
port = int(os.getenv("PORT", 7860))
|
| 1038 |
+
print(f"[{datetime.now().isoformat()}] BINDING UVICORN ON PORT {port} WITH EXPLICIT STDOUT LOGGING...", flush=True)
|
| 1039 |
uvicorn.run(app, host="0.0.0.0", port=port, log_config=LOGGING_CONFIG)
|