NeonBohdan
commited on
Commit
•
78f478e
1
Parent(s):
6fb53fe
sdk_version: 3.1.7
Browse files
README.md
CHANGED
@@ -5,7 +5,7 @@ colorFrom: green
|
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
python_version: 3.9
|
8 |
-
sdk_version: 3.
|
9 |
app_file: app.py
|
10 |
models: [
|
11 |
"neongeckocom/tts-vits-ljspeech-en",
|
|
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
python_version: 3.9
|
8 |
+
sdk_version: 3.1.7
|
9 |
app_file: app.py
|
10 |
models: [
|
11 |
"neongeckocom/tts-vits-ljspeech-en",
|
app.py
CHANGED
@@ -6,6 +6,7 @@ from neon_tts_plugin_coqui import CoquiTTS
|
|
6 |
|
7 |
|
8 |
LANGUAGES = list(CoquiTTS.langs.keys())
|
|
|
9 |
|
10 |
|
11 |
|
@@ -37,12 +38,13 @@ with gr.Blocks() as blocks:
|
|
37 |
with gr.Column():# variant="panel"
|
38 |
textbox = gr.Textbox(
|
39 |
label="Input",
|
40 |
-
value=CoquiTTS.langs[
|
41 |
max_lines=3,
|
42 |
)
|
43 |
radio = gr.Radio(
|
44 |
label="Language",
|
45 |
choices=LANGUAGES,
|
|
|
46 |
)
|
47 |
with gr.Row():# mobile_collapse=False
|
48 |
submit = gr.Button("Submit", variant="primary")
|
|
|
6 |
|
7 |
|
8 |
LANGUAGES = list(CoquiTTS.langs.keys())
|
9 |
+
default_lang = "en"
|
10 |
|
11 |
|
12 |
|
|
|
38 |
with gr.Column():# variant="panel"
|
39 |
textbox = gr.Textbox(
|
40 |
label="Input",
|
41 |
+
value=CoquiTTS.langs[default_lang]["sentence"],
|
42 |
max_lines=3,
|
43 |
)
|
44 |
radio = gr.Radio(
|
45 |
label="Language",
|
46 |
choices=LANGUAGES,
|
47 |
+
value=default_lang
|
48 |
)
|
49 |
with gr.Row():# mobile_collapse=False
|
50 |
submit = gr.Button("Submit", variant="primary")
|