Spaces:
Runtime error
Runtime error
Linoy Tsaban
commited on
Commit
·
39b1e18
1
Parent(s):
1b86f61
Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,20 @@ def randomize_seed_fn():
|
|
20 |
|
21 |
def reset_do_inversion():
|
22 |
return True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
def preprocess_and_invert(video,
|
25 |
frames,
|
@@ -162,6 +176,13 @@ with gr.Blocks(css="style.css") as demo:
|
|
162 |
|
163 |
])
|
164 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
|
166 |
|
167 |
demo.queue()
|
|
|
20 |
|
21 |
def reset_do_inversion():
|
22 |
return True
|
23 |
+
|
24 |
+
def get_example():
|
25 |
+
case = [
|
26 |
+
[
|
27 |
+
'examples/wolf.mp4',
|
28 |
+
|
29 |
+
],
|
30 |
+
[
|
31 |
+
'examples/woman-running.mp4',
|
32 |
+
|
33 |
+
],
|
34 |
+
|
35 |
+
]
|
36 |
+
return case
|
37 |
|
38 |
def preprocess_and_invert(video,
|
39 |
frames,
|
|
|
176 |
|
177 |
])
|
178 |
|
179 |
+
gr.Examples(
|
180 |
+
examples=get_example(),
|
181 |
+
label='Examples',
|
182 |
+
inputs=[input_vid],
|
183 |
+
outputs=[input_vid]
|
184 |
+
)
|
185 |
+
|
186 |
|
187 |
|
188 |
demo.queue()
|