Spaces:
Running
Running
harlanhong
commited on
Commit
•
d726718
1
Parent(s):
8747375
first
Browse files
app.py
CHANGED
@@ -8,12 +8,10 @@ from PIL import Image
|
|
8 |
# Download sample images
|
9 |
|
10 |
|
11 |
-
examples = [['project/cartoon2.jpg'],
|
12 |
-
['project/cartoon3.jpg'],
|
13 |
-
['project/celeb1.jpg'],
|
14 |
-
['project/celeb2.jpg'],
|
15 |
-
['project/video1.jpg'],
|
16 |
-
['project/video2.jpg'],
|
17 |
]
|
18 |
|
19 |
|
@@ -51,8 +49,8 @@ def inference(img, video):
|
|
51 |
gr.Interface(
|
52 |
inference,
|
53 |
[
|
54 |
-
gr.inputs.Image(type="pil", label="
|
55 |
-
gr.inputs.Video(label="
|
56 |
],
|
57 |
gr.outputs.Video(type="mp4", label="Output"),
|
58 |
title=title,
|
|
|
8 |
# Download sample images
|
9 |
|
10 |
|
11 |
+
examples = [['project/cartoon2.jpg','project/video1.mp4'],
|
12 |
+
['project/cartoon3.jpg','project/video2.mp4'],
|
13 |
+
['project/celeb1.jpg','project/video1.mp4'],
|
14 |
+
['project/celeb2.jpg','project/video2.mp4'],
|
|
|
|
|
15 |
]
|
16 |
|
17 |
|
|
|
49 |
gr.Interface(
|
50 |
inference,
|
51 |
[
|
52 |
+
gr.inputs.Image(type="pil", label="Source Image"),
|
53 |
+
gr.inputs.Video(label="Driving Video"),
|
54 |
],
|
55 |
gr.outputs.Video(type="mp4", label="Output"),
|
56 |
title=title,
|