Update app.py
Browse files
app.py
CHANGED
|
@@ -46,18 +46,7 @@ def predict(text, speaker):
|
|
| 46 |
|
| 47 |
|
| 48 |
# Get speakers from references path to prepare the speakers list
|
| 49 |
-
speakers = [
|
| 50 |
-
examples = [
|
| 51 |
-
[
|
| 52 |
-
"ุงููุชูุดููู ุฃููุซูุฑู ุนููู ู
ูุฌูู
ููุนูุชูููุง ุงูููุงุณูุนูุฉู ู
ููู ููุงุฌูููุงุชู ุงูุชููุทูุจููููุงุชู ุงูุจูุฑูู
ูุฌููููุฉู.",
|
| 53 |
-
"Nour", None, None, False
|
| 54 |
-
],
|
| 55 |
-
[
|
| 56 |
-
"ุจูุงุณูุชูุฎูุฏูุงู
ู ุงูุฃูุฑูููุงู
ู ุงูู
ูุญูููููููุฉู ุ ููุณููุนู ููุทูุงูู ููุตูููููู ุจูุฃูุฑูููุงู
ู ู
ููู ุฌูู
ููุนู ุฃููุญูุงุกู ุงูุนูุงููู
ู ุฏูููู ุงูุงุถูุทูุฑูุงุฑู ููููุชูุญู ููุฑููุนู ุจูุชููููู ุงูุฃูู
ูุงูููู.",
|
| 57 |
-
"Nour", None, None, False
|
| 58 |
-
]
|
| 59 |
-
]
|
| 60 |
-
|
| 61 |
|
| 62 |
playground = gr.Interface(
|
| 63 |
fn = predict,
|
|
@@ -69,7 +58,7 @@ playground = gr.Interface(
|
|
| 69 |
),
|
| 70 |
gr.Dropdown(
|
| 71 |
speakers,
|
| 72 |
-
value="
|
| 73 |
label = "Speaker / Reference source",
|
| 74 |
info = "Choose your speaker or choose to upload / record a new speaker."
|
| 75 |
),
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
# Get speakers from references path to prepare the speakers list
|
| 49 |
+
speakers = ["Wajeez"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
playground = gr.Interface(
|
| 52 |
fn = predict,
|
|
|
|
| 58 |
),
|
| 59 |
gr.Dropdown(
|
| 60 |
speakers,
|
| 61 |
+
value="Wajeez",
|
| 62 |
label = "Speaker / Reference source",
|
| 63 |
info = "Choose your speaker or choose to upload / record a new speaker."
|
| 64 |
),
|