Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -338,4 +338,11 @@ app = gr.mount_gradio_app(api_app, demo, path="/")
|
|
| 338 |
if __name__ == "__main__":
|
| 339 |
import uvicorn
|
| 340 |
port = int(os.environ.get("PORT", "7860"))
|
| 341 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 338 |
if __name__ == "__main__":
|
| 339 |
import uvicorn
|
| 340 |
port = int(os.environ.get("PORT", "7860"))
|
| 341 |
+
print(f"[startup] Starting Face Recognition API on port {port}", flush=True)
|
| 342 |
+
|
| 343 |
+
uvicorn.run(
|
| 344 |
+
app,
|
| 345 |
+
host="0.0.0.0",
|
| 346 |
+
port=port,
|
| 347 |
+
log_level="info"
|
| 348 |
+
)
|