Mansib commited on
Commit
a5a43d4
·
1 Parent(s): 34ccc93

Updated style

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -43,12 +43,15 @@ def allure(image, gender):
43
  composite = round(composite, 2)
44
 
45
  judgement = "extremely toonish or altered"
46
- if authenticity_score > 80:
47
- judgement = "likely real"
48
- elif authenticity_score > 70:
 
 
 
49
  judgement = "moderately altered"
50
- elif authenticity_score > 50:
51
- judgement = "toonish or very altered"
52
 
53
  return composite, hotness_score, beauty_score, attractiveness_score, f"{authenticity_score} ({judgement})"
54
 
@@ -99,7 +102,7 @@ with gr.Interface(
99
  gr.Textbox(label="Hotness (%)"),
100
  gr.Textbox(label="Beauty (%)"),
101
  gr.Textbox(label="Allure (%)"),
102
- gr.Textbox(label="Authenticity (≥ 80% → likely real)"),
103
  ],
104
  examples=[
105
  ['Mansib_01_x2048.png', 'Man'],
 
43
  composite = round(composite, 2)
44
 
45
  judgement = "extremely toonish or altered"
46
+
47
+ if authenticity_score >= 90:
48
+ judgement = "likely real and unaltered"
49
+ elif authenticity_score >= 80:
50
+ judgement = "slightly altered"
51
+ elif authenticity_score >= 70:
52
  judgement = "moderately altered"
53
+ elif authenticity_score >= 50:
54
+ judgement = "significantly toonish or altered"
55
 
56
  return composite, hotness_score, beauty_score, attractiveness_score, f"{authenticity_score} ({judgement})"
57
 
 
102
  gr.Textbox(label="Hotness (%)"),
103
  gr.Textbox(label="Beauty (%)"),
104
  gr.Textbox(label="Allure (%)"),
105
+ gr.Textbox(label="Authenticity (≥ 90% → likely real)"),
106
  ],
107
  examples=[
108
  ['Mansib_01_x2048.png', 'Man'],