Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -335,14 +335,4 @@ with gr.Blocks(title="Face Recognition Backend API") as demo:
|
|
| 335 |
|
| 336 |
app = gr.mount_gradio_app(api_app, demo, path="/")
|
| 337 |
|
| 338 |
-
|
| 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 |
-
)
|
|
|
|
| 335 |
|
| 336 |
app = gr.mount_gradio_app(api_app, demo, path="/")
|
| 337 |
|
| 338 |
+
print("[startup] Face Recognition API application created", flush=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|