Spaces:
Running
Running
🤔: translate words
Browse files
app.py
CHANGED
@@ -458,7 +458,7 @@ def tts_text_conf():
|
|
458 |
return gr.Textbox(
|
459 |
value="",
|
460 |
placeholder="在这里输入文字...",
|
461 |
-
label="
|
462 |
visible=False,
|
463 |
lines=3,
|
464 |
)
|
@@ -466,7 +466,7 @@ def tts_text_conf():
|
|
466 |
|
467 |
def tts_button_conf():
|
468 |
return gr.Button(
|
469 |
-
"执行
|
470 |
variant="secondary",
|
471 |
visible=False,
|
472 |
)
|
@@ -475,7 +475,7 @@ def tts_button_conf():
|
|
475 |
def tts_play_conf():
|
476 |
return gr.Checkbox(
|
477 |
False,
|
478 |
-
label="
|
479 |
# info="",
|
480 |
container=False,
|
481 |
visible=False,
|
@@ -486,6 +486,7 @@ def sound_gui():
|
|
486 |
return gr.Audio(
|
487 |
value=None,
|
488 |
type="filepath",
|
|
|
489 |
# format="mp3",
|
490 |
autoplay=True,
|
491 |
visible=False,
|
|
|
458 |
return gr.Textbox(
|
459 |
value="",
|
460 |
placeholder="在这里输入文字...",
|
461 |
+
label="文本",
|
462 |
visible=False,
|
463 |
lines=3,
|
464 |
)
|
|
|
466 |
|
467 |
def tts_button_conf():
|
468 |
return gr.Button(
|
469 |
+
"执行TTS",
|
470 |
variant="secondary",
|
471 |
visible=False,
|
472 |
)
|
|
|
475 |
def tts_play_conf():
|
476 |
return gr.Checkbox(
|
477 |
False,
|
478 |
+
label="自动播放TTS声音",
|
479 |
# info="",
|
480 |
container=False,
|
481 |
visible=False,
|
|
|
486 |
return gr.Audio(
|
487 |
value=None,
|
488 |
type="filepath",
|
489 |
+
label="TTS声音",
|
490 |
# format="mp3",
|
491 |
autoplay=True,
|
492 |
visible=False,
|