Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,12 +5,8 @@ from transformers import AutoFeatureExtractor, AutoModelForAudioXVector
|
|
| 5 |
|
| 6 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 7 |
|
| 8 |
-
STYLE = """
|
| 9 |
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha256-YvdLHPgkqJ8DVUxjjnGVlMMJtNimJ6dYkowFFvp4kKs=" crossorigin="anonymous">
|
| 10 |
-
"""
|
| 11 |
OUTPUT_OK = (
|
| 12 |
-
|
| 13 |
-
+ """
|
| 14 |
<div class="container">
|
| 15 |
<div class="row"><h1 style="text-align: center">The speakers are</h1></div>
|
| 16 |
<div class="row"><h1 class="display-1 text-success" style="text-align: center">{:.1f}%</h1></div>
|
|
@@ -21,8 +17,7 @@ OUTPUT_OK = (
|
|
| 21 |
"""
|
| 22 |
)
|
| 23 |
OUTPUT_FAIL = (
|
| 24 |
-
|
| 25 |
-
+ """
|
| 26 |
<div class="container">
|
| 27 |
<div class="row"><h1 style="text-align: center">The speakers are</h1></div>
|
| 28 |
<div class="row"><h1 class="display-1 text-danger" style="text-align: center">{:.1f}%</h1></div>
|
|
|
|
| 5 |
|
| 6 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 7 |
|
|
|
|
|
|
|
|
|
|
| 8 |
OUTPUT_OK = (
|
| 9 |
+
"""
|
|
|
|
| 10 |
<div class="container">
|
| 11 |
<div class="row"><h1 style="text-align: center">The speakers are</h1></div>
|
| 12 |
<div class="row"><h1 class="display-1 text-success" style="text-align: center">{:.1f}%</h1></div>
|
|
|
|
| 17 |
"""
|
| 18 |
)
|
| 19 |
OUTPUT_FAIL = (
|
| 20 |
+
"""
|
|
|
|
| 21 |
<div class="container">
|
| 22 |
<div class="row"><h1 style="text-align: center">The speakers are</h1></div>
|
| 23 |
<div class="row"><h1 class="display-1 text-danger" style="text-align: center">{:.1f}%</h1></div>
|