Spaces:
Runtime error
Runtime error
Updated style
Browse files
app.py
CHANGED
|
@@ -43,12 +43,15 @@ def allure(image, gender):
|
|
| 43 |
composite = round(composite, 2)
|
| 44 |
|
| 45 |
judgement = "extremely toonish or altered"
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
| 49 |
judgement = "moderately altered"
|
| 50 |
-
elif authenticity_score
|
| 51 |
-
judgement = "toonish or
|
| 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 (≥
|
| 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'],
|