Update app.py
Browse files
app.py
CHANGED
@@ -16,11 +16,16 @@ def face_similarity(img1, img2):
|
|
16 |
|
17 |
return f"์ ์ฌ๋: {similarity:.2f}\n{message}"
|
18 |
|
19 |
-
iface = gr.Interface(
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
iface.launch()
|
26 |
|
|
|
16 |
|
17 |
return f"์ ์ฌ๋: {similarity:.2f}\n{message}"
|
18 |
|
19 |
+
iface = gr.Interface(
|
20 |
+
fn=face_similarity,
|
21 |
+
inputs=[
|
22 |
+
gr.Image(image_mode='RGB', source='upload', type='numpy'),
|
23 |
+
gr.Image(image_mode='RGB', source='upload', type='numpy')
|
24 |
+
],
|
25 |
+
outputs="text",
|
26 |
+
title="์ผ๊ตด ์ ์ฌ๋ ์ธก์ ",
|
27 |
+
description="๋ ์ผ๊ตด ์ด๋ฏธ์ง๋ฅผ ์
๋ก๋ํด์ ์ ์ฌ๋๋ฅผ ์ธก์ ํฉ๋๋ค."
|
28 |
+
)
|
29 |
|
30 |
iface.launch()
|
31 |
|