Spaces:
Running
Running
Liangcd
commited on
Commit
•
0f73f21
1
Parent(s):
e3feded
[demo] refine app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ OUTPUT_OK = (STYLE + """
|
|
26 |
<div class="row"><h1 class="display-1 text-success" style="text-align: center">{:.1f}%</h1></div>
|
27 |
<div class="row"><h1 style="text-align: center">similar</h1></div>
|
28 |
<div class="row"><h1 class="text-success" style="text-align: center">Welcome, human!</h1></div>
|
29 |
-
<div class="row"><small style="text-align: center">(You must get at least
|
30 |
</div>
|
31 |
""")
|
32 |
OUTPUT_FAIL = (STYLE + """
|
@@ -35,7 +35,7 @@ OUTPUT_FAIL = (STYLE + """
|
|
35 |
<div class="row"><h1 class="display-1 text-danger" style="text-align: center">{:.1f}%</h1></div>
|
36 |
<div class="row"><h1 style="text-align: center">similar</h1></div>
|
37 |
<div class="row"><h1 class="text-danger" style="text-align: center">Warning! stranger!</h1></div>
|
38 |
-
<div class="row"><small style="text-align: center">(You must get at least
|
39 |
</div>
|
40 |
""")
|
41 |
|
@@ -91,7 +91,7 @@ inputs = [
|
|
91 |
output = gr.outputs.HTML(label="")
|
92 |
|
93 |
# description
|
94 |
-
description = ("WeSpeaker Demo ! Try it with your own voice !")
|
95 |
|
96 |
article = (
|
97 |
"<p style='text-align: center'>"
|
|
|
26 |
<div class="row"><h1 class="display-1 text-success" style="text-align: center">{:.1f}%</h1></div>
|
27 |
<div class="row"><h1 style="text-align: center">similar</h1></div>
|
28 |
<div class="row"><h1 class="text-success" style="text-align: center">Welcome, human!</h1></div>
|
29 |
+
<div class="row"><small style="text-align: center">(You must get at least 70% to be considered the same person)</small></div>
|
30 |
</div>
|
31 |
""")
|
32 |
OUTPUT_FAIL = (STYLE + """
|
|
|
35 |
<div class="row"><h1 class="display-1 text-danger" style="text-align: center">{:.1f}%</h1></div>
|
36 |
<div class="row"><h1 style="text-align: center">similar</h1></div>
|
37 |
<div class="row"><h1 class="text-danger" style="text-align: center">Warning! stranger!</h1></div>
|
38 |
+
<div class="row"><small style="text-align: center">(You must get at least 70% to be considered the same person)</small></div>
|
39 |
</div>
|
40 |
""")
|
41 |
|
|
|
91 |
output = gr.outputs.HTML(label="")
|
92 |
|
93 |
# description
|
94 |
+
description = ("WeSpeaker Demo ! Try it with your own voice ! Note: We recommend that the audio length be greater than 5s ! \n CN: cnceleb_resnet34.onnx \n EN: voxceleb_resnet34.onnx")
|
95 |
|
96 |
article = (
|
97 |
"<p style='text-align: center'>"
|