Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import random
|
2 |
import subprocess
|
3 |
import os
|
4 |
-
import gradio
|
5 |
import requests
|
6 |
|
7 |
|
@@ -16,8 +16,8 @@ def predict(video, audio):
|
|
16 |
return output_file
|
17 |
|
18 |
|
19 |
-
demo = gr.Interface(fn=predict, inputs=[
|
20 |
-
|
21 |
-
outputs=
|
22 |
demo.launch()
|
23 |
|
|
|
1 |
import random
|
2 |
import subprocess
|
3 |
import os
|
4 |
+
import gradio as gr
|
5 |
import requests
|
6 |
|
7 |
|
|
|
16 |
return output_file
|
17 |
|
18 |
|
19 |
+
demo = gr.Interface(fn=predict, inputs=[gr.Video(label='Source image/video'),
|
20 |
+
gr.Audio(type='filepath', label='Target Audio')],
|
21 |
+
outputs=gr.Video())
|
22 |
demo.launch()
|
23 |
|