Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -71,15 +71,6 @@ def sadtalker_demo():
|
|
71 |
length_of_audio = gr.Number(value=5, label="The length(seconds) of the generated video.")
|
72 |
use_idle_mode.change(toggle_audio_file, inputs=use_idle_mode, outputs=[driven_audio, driven_audio_no]) # todo
|
73 |
|
74 |
-
if sys.platform != 'win32' and not in_webui:
|
75 |
-
with gr.Accordion('Generate Audio From TTS', open=False):
|
76 |
-
from src.utils.text2speech import TTSTalker
|
77 |
-
tts_talker = TTSTalker()
|
78 |
-
with gr.Column(variant='panel'):
|
79 |
-
input_text = gr.Textbox(label="Generating audio from text", lines=5, placeholder="please enter some text here, we genreate the audio from text using @Coqui.ai TTS.")
|
80 |
-
tts = gr.Button('Generate audio',elem_id="sadtalker_audio_generate", variant='primary')
|
81 |
-
tts.click(fn=tts_talker.test, inputs=[input_text], outputs=[driven_audio])
|
82 |
-
|
83 |
with gr.Row():
|
84 |
ref_video = gr.Video(label="Reference Video", source="upload", type="filepath", elem_id="vidref").style(width=512)
|
85 |
|
|
|
71 |
length_of_audio = gr.Number(value=5, label="The length(seconds) of the generated video.")
|
72 |
use_idle_mode.change(toggle_audio_file, inputs=use_idle_mode, outputs=[driven_audio, driven_audio_no]) # todo
|
73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
with gr.Row():
|
75 |
ref_video = gr.Video(label="Reference Video", source="upload", type="filepath", elem_id="vidref").style(width=512)
|
76 |
|