daddyjin commited on
Commit
ef889a2
·
1 Parent(s): b1a1d24

add app.py for test

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -1,6 +1,12 @@
1
  import gradio as gr
 
2
 
3
  def tfr(source_img, driving_audio):
 
 
 
 
 
4
  return None
5
 
6
  tfr_demo = gr.Interface(fn=tfr, inputs=["image", "audio"], outputs="video",
 
1
  import gradio as gr
2
+ from FONT.gradio_demo import FONT
3
 
4
  def tfr(source_img, driving_audio):
5
+ tfg = FONT()
6
+ src_image_path = './FONT/test/image/ABOUT_00994.jpg'
7
+ driving_audio_path = './FONT/test/audio/00015.mp3'
8
+ video_path = tfg.test(source_image_path=src_image_path, driving_audio_path=driving_audio_path)
9
+ print(video_path)
10
  return None
11
 
12
  tfr_demo = gr.Interface(fn=tfr, inputs=["image", "audio"], outputs="video",