vinthony commited on
Commit
95ba447
1 Parent(s): a65ecaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -2,7 +2,7 @@ import os, sys
2
  import tempfile
3
  import gradio as gr
4
  from src.gradio_demo import SadTalker
5
- from src.utils.text2speech import TTSTalker
6
  from huggingface_hub import snapshot_download
7
 
8
  def get_source_image(image):
@@ -17,7 +17,7 @@ def sadtalker_demo():
17
  download_model()
18
 
19
  sad_talker = SadTalker(lazy_load=True)
20
- tts_talker = TTSTalker()
21
 
22
  with gr.Blocks(analytics_enabled=False) as sadtalker_interface:
23
  gr.Markdown("<div align='center'> <h2> 😭 SadTalker: Learning Realistic 3D Motion Coefficients for Stylized Audio-Driven Single Image Talking Face Animation (CVPR 2023) </span> </h2> \
@@ -43,10 +43,10 @@ def sadtalker_demo():
43
  with gr.Column(variant='panel'):
44
  driven_audio = gr.Audio(label="Input audio(.wav/.mp3)", source="upload", type="filepath")
45
 
46
- with gr.Column(variant='panel'):
47
- input_text = gr.Textbox(label="Generating audio from text", lines=5, placeholder="Alternatively, you can genreate the audio from text using @Coqui.ai TTS.")
48
- tts = gr.Button('Generate audio',elem_id="sadtalker_audio_generate", variant='primary')
49
- tts.click(fn=tts_talker.test, inputs=[input_text], outputs=[driven_audio])
50
 
51
 
52
  with gr.Column(variant='panel'):
 
2
  import tempfile
3
  import gradio as gr
4
  from src.gradio_demo import SadTalker
5
+ # from src.utils.text2speech import TTSTalker
6
  from huggingface_hub import snapshot_download
7
 
8
  def get_source_image(image):
 
17
  download_model()
18
 
19
  sad_talker = SadTalker(lazy_load=True)
20
+ # tts_talker = TTSTalker()
21
 
22
  with gr.Blocks(analytics_enabled=False) as sadtalker_interface:
23
  gr.Markdown("<div align='center'> <h2> 😭 SadTalker: Learning Realistic 3D Motion Coefficients for Stylized Audio-Driven Single Image Talking Face Animation (CVPR 2023) </span> </h2> \
 
43
  with gr.Column(variant='panel'):
44
  driven_audio = gr.Audio(label="Input audio(.wav/.mp3)", source="upload", type="filepath")
45
 
46
+ # with gr.Column(variant='panel'):
47
+ # input_text = gr.Textbox(label="Generating audio from text", lines=5, placeholder="Alternatively, you can genreate the audio from text using @Coqui.ai TTS.")
48
+ # tts = gr.Button('Generate audio',elem_id="sadtalker_audio_generate", variant='primary')
49
+ # tts.click(fn=tts_talker.test, inputs=[input_text], outputs=[driven_audio])
50
 
51
 
52
  with gr.Column(variant='panel'):