suinY00N commited on
Commit
a75a347
โ€ข
1 Parent(s): 85b6cb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,9 +8,9 @@ def face_similarity(img1, img2):
8
  verified = result["verified"]
9
 
10
  # ์œ ์‚ฌ๋„์— ๋”ฐ๋ฅธ ๋ฉ”์‹œ์ง€ ์กฐ๊ฑด ๋ถ„๊ธฐ, ์ด์ œ similarity ๊ฐ’์ด ๋†’์„์ˆ˜๋ก ์œ ์‚ฌํ•œ ๊ฒƒ์œผ๋กœ ์ฒ˜๋ฆฌ
11
- if similarity > 0.7:
12
  message = "๋‘ ๋ถ„์€ ์ฒœ์ƒ์—ฐ๋ถ„!"
13
- elif 0.4 < similarity <= 0.7:
14
  message = "๋‘ ๋ถ„์€ ๋‚ด๊บผ์ธ๋“ฏ ๋‚ด๊บผ์•„๋‹Œ ๋‚ด๊บผ๊ฐ™์€...?"
15
  else:
16
  message = "์˜คํžˆ๋ ค ์ข‹์•„! ์ •๋ฐ˜๋Œ€์˜ ์‚ฌ๋žŒ์ด ๋Œ๋ฆด์ง€๋„ ๋ชฐ๋ผ์š”"
 
8
  verified = result["verified"]
9
 
10
  # ์œ ์‚ฌ๋„์— ๋”ฐ๋ฅธ ๋ฉ”์‹œ์ง€ ์กฐ๊ฑด ๋ถ„๊ธฐ, ์ด์ œ similarity ๊ฐ’์ด ๋†’์„์ˆ˜๋ก ์œ ์‚ฌํ•œ ๊ฒƒ์œผ๋กœ ์ฒ˜๋ฆฌ
11
+ if similarity > 0.5:
12
  message = "๋‘ ๋ถ„์€ ์ฒœ์ƒ์—ฐ๋ถ„!"
13
+ elif 0.4 < similarity <= 0.5:
14
  message = "๋‘ ๋ถ„์€ ๋‚ด๊บผ์ธ๋“ฏ ๋‚ด๊บผ์•„๋‹Œ ๋‚ด๊บผ๊ฐ™์€...?"
15
  else:
16
  message = "์˜คํžˆ๋ ค ์ข‹์•„! ์ •๋ฐ˜๋Œ€์˜ ์‚ฌ๋žŒ์ด ๋Œ๋ฆด์ง€๋„ ๋ชฐ๋ผ์š”"