Locococ commited on
Commit
fdc11bf
·
verified ·
1 Parent(s): 0bd32c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -11
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
- 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
- )
 
335
 
336
  app = gr.mount_gradio_app(api_app, demo, path="/")
337
 
338
+ print("[startup] Face Recognition API application created", flush=True)