Zhu-FaceOnLive
commited on
Update gradio/demo.py
Browse files- gradio/demo.py +2 -2
gradio/demo.py
CHANGED
@@ -33,8 +33,8 @@ with gr.Blocks() as demo:
|
|
33 |
with gr.Column(scale=5):
|
34 |
liveness_result_output = gr.JSON()
|
35 |
|
36 |
-
face_liveness_button.click(face_liveness, inputs=image_input, outputs=liveness_result_output)
|
37 |
|
38 |
gr.HTML('<a href="https://visitorbadge.io/status?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2FFaceOnLive%2FFace-Liveness-Detection-SDK"><img src="https://api.visitorbadge.io/api/combined?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2FFaceOnLive%2FFace-Liveness-Detection-SDK&labelColor=%23ff8a65&countColor=%2337d67a&style=flat&labelStyle=upper" /></a>')
|
39 |
|
40 |
-
demo.launch(server_name="0.0.0.0", server_port=7860, show_api=False)
|
|
|
33 |
with gr.Column(scale=5):
|
34 |
liveness_result_output = gr.JSON()
|
35 |
|
36 |
+
face_liveness_button.click(face_liveness, inputs=image_input, outputs=liveness_result_output, api_name=False)
|
37 |
|
38 |
gr.HTML('<a href="https://visitorbadge.io/status?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2FFaceOnLive%2FFace-Liveness-Detection-SDK"><img src="https://api.visitorbadge.io/api/combined?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2FFaceOnLive%2FFace-Liveness-Detection-SDK&labelColor=%23ff8a65&countColor=%2337d67a&style=flat&labelStyle=upper" /></a>')
|
39 |
|
40 |
+
demo.queue(api_open=False).launch(server_name="0.0.0.0", server_port=7860, show_api=False)
|