Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
039f399
1
Parent(s):
a579880
feat: language show all language in g2p_object and change to dropdown
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import torchaudio
|
|
8 |
from cached_path import cached_path
|
9 |
from omegaconf import OmegaConf
|
10 |
|
11 |
-
from ipa.ipa import text_to_ipa
|
12 |
|
13 |
try:
|
14 |
import spaces
|
@@ -206,8 +206,8 @@ with demo:
|
|
206 |
label="模型",
|
207 |
)
|
208 |
|
209 |
-
language = gr.
|
210 |
-
choices=
|
211 |
label="語言",
|
212 |
value="阿美_秀姑巒",
|
213 |
)
|
|
|
8 |
from cached_path import cached_path
|
9 |
from omegaconf import OmegaConf
|
10 |
|
11 |
+
from ipa.ipa import g2p_object, text_to_ipa
|
12 |
|
13 |
try:
|
14 |
import spaces
|
|
|
206 |
label="模型",
|
207 |
)
|
208 |
|
209 |
+
language = gr.Dropdown(
|
210 |
+
choices=g2p_object.keys(),
|
211 |
label="語言",
|
212 |
value="阿美_秀姑巒",
|
213 |
)
|