Spaces:
Runtime error
Runtime error
add app.py for test
Browse files
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",
|