Spaces:
Runtime error
Runtime error
Matt Goyder
commited on
Commit
•
3ece203
1
Parent(s):
516b1c3
fix type errors in app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
import subprocess
|
4 |
|
5 |
title = "DaGAN Demo"
|
6 |
-
description = "
|
7 |
|
8 |
def inference(mode, img, video):
|
9 |
os.makedirs('tmp', exist_ok=True)
|
@@ -19,8 +19,8 @@ gr.Interface(
|
|
19 |
inference,
|
20 |
[
|
21 |
gr.Dropdown(["reconstruction", "animation"]),
|
22 |
-
gr.inputs.Image(type="filepath", label="Source (only used if mode is
|
23 |
-
gr.inputs.
|
24 |
],
|
25 |
outputs=gr.outputs.Video(type="mp4", label="Output Video"),
|
26 |
title=title,
|
|
|
3 |
import subprocess
|
4 |
|
5 |
title = "DaGAN Demo"
|
6 |
+
description = "Reconstruction and Animation demos for DaGAN"
|
7 |
|
8 |
def inference(mode, img, video):
|
9 |
os.makedirs('tmp', exist_ok=True)
|
|
|
19 |
inference,
|
20 |
[
|
21 |
gr.Dropdown(["reconstruction", "animation"]),
|
22 |
+
gr.inputs.Image(type="filepath", label="Source (only used if mode is animation)"),
|
23 |
+
gr.inputs.Video(type="mp4", label="Driving Video")
|
24 |
],
|
25 |
outputs=gr.outputs.Video(type="mp4", label="Output Video"),
|
26 |
title=title,
|