Spaces:
Runtime error
Runtime error
B.T. Atmaja
commited on
Commit
·
15edccd
1
Parent(s):
ba93704
lower threshold to 0.8 from 0.85
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ OUTPUT_OK = (
|
|
16 |
<div class="row"><h1 class="display-1 text-success" style="text-align: center">{:.1f}%</h1></div>
|
17 |
<div class="row"><h1 style="text-align: center">similar</h1></div>
|
18 |
<div class="row"><h1 class="text-success" style="text-align: center">Welcome, human!</h1></div>
|
19 |
-
<div class="row"><small style="text-align: center">(You must get at least
|
20 |
</div>
|
21 |
"""
|
22 |
)
|
@@ -28,7 +28,7 @@ OUTPUT_FAIL = (
|
|
28 |
<div class="row"><h1 class="display-1 text-danger" style="text-align: center">{:.1f}%</h1></div>
|
29 |
<div class="row"><h1 style="text-align: center">similar</h1></div>
|
30 |
<div class="row"><h1 class="text-danger" style="text-align: center">You shall not pass!</h1></div>
|
31 |
-
<div class="row"><small style="text-align: center">(You must get at least
|
32 |
</div>
|
33 |
"""
|
34 |
)
|
@@ -42,7 +42,7 @@ EFFECTS = [
|
|
42 |
["trim", "0", "10"],
|
43 |
]
|
44 |
|
45 |
-
THRESHOLD = 0.
|
46 |
|
47 |
model_name = "microsoft/wavlm-base-plus-sv"
|
48 |
feature_extractor = AutoFeatureExtractor.from_pretrained(model_name)
|
|
|
16 |
<div class="row"><h1 class="display-1 text-success" style="text-align: center">{:.1f}%</h1></div>
|
17 |
<div class="row"><h1 style="text-align: center">similar</h1></div>
|
18 |
<div class="row"><h1 class="text-success" style="text-align: center">Welcome, human!</h1></div>
|
19 |
+
<div class="row"><small style="text-align: center">(You must get at least 80% to be considered the same person)</small><div class="row">
|
20 |
</div>
|
21 |
"""
|
22 |
)
|
|
|
28 |
<div class="row"><h1 class="display-1 text-danger" style="text-align: center">{:.1f}%</h1></div>
|
29 |
<div class="row"><h1 style="text-align: center">similar</h1></div>
|
30 |
<div class="row"><h1 class="text-danger" style="text-align: center">You shall not pass!</h1></div>
|
31 |
+
<div class="row"><small style="text-align: center">(You must get at least 80% to be considered the same person)</small><div class="row">
|
32 |
</div>
|
33 |
"""
|
34 |
)
|
|
|
42 |
["trim", "0", "10"],
|
43 |
]
|
44 |
|
45 |
+
THRESHOLD = 0.80
|
46 |
|
47 |
model_name = "microsoft/wavlm-base-plus-sv"
|
48 |
feature_extractor = AutoFeatureExtractor.from_pretrained(model_name)
|