Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
83bbeda
1
Parent(s):
5dba2ad
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,19 +19,19 @@ def randomize_seed_fn():
|
|
| 19 |
def reset_do_inversion():
|
| 20 |
return True
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
|
| 31 |
-
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
| 35 |
|
| 36 |
|
| 37 |
def prep(config):
|
|
@@ -307,12 +307,12 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 307 |
outputs = [output_video, frames, latents, inverted_latents, do_inversion]
|
| 308 |
)
|
| 309 |
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
|
| 317 |
|
| 318 |
|
|
|
|
| 19 |
def reset_do_inversion():
|
| 20 |
return True
|
| 21 |
|
| 22 |
+
def get_example():
|
| 23 |
+
case = [
|
| 24 |
+
[
|
| 25 |
+
'examples/wolf.mp4',
|
| 26 |
|
| 27 |
+
],
|
| 28 |
+
[
|
| 29 |
+
'examples/woman-running.mp4',
|
| 30 |
|
| 31 |
+
],
|
| 32 |
|
| 33 |
+
]
|
| 34 |
+
return case
|
| 35 |
|
| 36 |
|
| 37 |
def prep(config):
|
|
|
|
| 307 |
outputs = [output_video, frames, latents, inverted_latents, do_inversion]
|
| 308 |
)
|
| 309 |
|
| 310 |
+
gr.Examples(
|
| 311 |
+
examples=get_example(),
|
| 312 |
+
label='Examples',
|
| 313 |
+
inputs=[input_vid],
|
| 314 |
+
outputs=[input_vid]
|
| 315 |
+
)
|
| 316 |
|
| 317 |
|
| 318 |
|