suinY00N commited on
Commit
0b5779b
โ€ข
1 Parent(s): 03fbd8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
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(fn=face_similarity,
20
- inputs=[gr.Image(shape=(224, 224)), gr.Image(shape=(224, 224))],
21
- outputs="text",
22
- title="์–ผ๊ตด ์œ ์‚ฌ๋„ ์ธก์ •",
23
- description="๋‘ ์–ผ๊ตด ์ด๋ฏธ์ง€๋ฅผ ์—…๋กœ๋“œํ•ด์„œ ์œ ์‚ฌ๋„๋ฅผ ์ธก์ •ํ•ฉ๋‹ˆ๋‹ค.")
 
 
 
 
 
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