You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
hey please help me making code if click on submit = gr.Button(
'Generate', elem_id="sadtalker_generate", variant='primary') then this button also automatically clicked tts = gr.Button(
'Generate', elem_id="sadtalker_audio_generate", variant='primary')
tts.click(fn=tts_talker.test, inputs=[
input_text], outputs=[driven_audio])
with gr.Row().style(equal_height=False):
with gr.Column(variant='panel'):
with gr.Tabs(elem_id="sadtalker_source_image"):
with gr.TabItem('Upload image'):
with gr.Row():
source_image = gr.Image(
label="Source image", source="upload", type="filepath").style(height=256, width=256)
with gr.Tabs(elem_id="sadtalker_driven_audio"):
with gr.TabItem('Upload or Generating from TTS'):
with gr.Column(variant='panel'):
driven_audio = gr.Audio(
label="Input audio(.wav/.mp3)", source="upload", type="filepath")
with gr.Column(variant='panel'):
input_text = gr.Textbox(label="Generating audio from text", lines=5,
placeholder="Alternatively, you can genreate the audio from text using @Coqui.ai TTS.")
tts = gr.Button(
'Generate', elem_id="sadtalker_audio_generate", variant='primary')
tts.click(fn=tts_talker.test, inputs=[
input_text], outputs=[driven_audio])
with gr.Column(variant='panel'):
with gr.Tabs(elem_id="sadtalker_checkbox"):
with gr.TabItem('Settings'):
with gr.Column(variant='panel'):
preprocess_type = gr.Radio(
['crop', 'resize', 'full'], value='crop', label='preprocess', info="How to handle input image?")
is_still_mode = gr.Checkbox(
label="w/ Still Mode (fewer hand motion, works with preprocess `full`)")
enhancer = gr.Checkbox(
label="w/ GFPGAN as Face enhancer")
submit = gr.Button(
'Generate', elem_id="sadtalker_generate", variant='primary')
with gr.Tabs(elem_id="sadtalker_genearted"):
gen_video = gr.Video(
label="Generated video", format="mp4").style(width=256)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hey please help me making code if click on submit = gr.Button(
'Generate', elem_id="sadtalker_generate", variant='primary') then this button also automatically clicked tts = gr.Button(
'Generate', elem_id="sadtalker_audio_generate", variant='primary')
tts.click(fn=tts_talker.test, inputs=[
input_text], outputs=[driven_audio])
def sadtalker_demo():
download_model()
sad_talker = SadTalker(lazy_load=True)
tts_talker = TTSTalker()
Beta Was this translation helpful? Give feedback.
All reactions