Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,9 +13,13 @@ def calculate(photo):
|
|
13 |
return faceid_embeds
|
14 |
|
15 |
with gr.Blocks() as demo:
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
19 |
greet_btn.click(fn=calculate, inputs=face_photo, outputs=output, api_name="calculate_face_embedding")
|
20 |
|
21 |
if __name__ == "__main__":
|
|
|
13 |
return faceid_embeds
|
14 |
|
15 |
with gr.Blocks() as demo:
|
16 |
+
with gr.Row():
|
17 |
+
with gr.Column():
|
18 |
+
face_photo = gr.Image(label="Photo", type="filepath")
|
19 |
+
greet_btn = gr.Button("Calculate")
|
20 |
+
with gr.Column():
|
21 |
+
output = gr.JSON()
|
22 |
+
|
23 |
greet_btn.click(fn=calculate, inputs=face_photo, outputs=output, api_name="calculate_face_embedding")
|
24 |
|
25 |
if __name__ == "__main__":
|