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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -335,4 +335,11 @@ with gr.Blocks(title="Face Recognition Backend API") as demo:
335
 
336
  app = gr.mount_gradio_app(api_app, demo, path="/")
337
 
338
- print("[startup] Face Recognition API application created", flush=True)
 
 
 
 
 
 
 
 
335
 
336
  app = gr.mount_gradio_app(api_app, demo, path="/")
337
 
338
+ if __name__ == "__main__":
339
+ print("[startup] Starting Gradio server", flush=True)
340
+
341
+ demo.launch(
342
+ server_name="0.0.0.0",
343
+ server_port=1008,
344
+ show_error=True
345
+ )