Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -194,27 +194,6 @@ with gr.Blocks(theme=gr.themes.Ocean()) as demo:
|
|
194 |
|
195 |
bg_type.change(update_visibility, inputs=bg_type, outputs=[color_picker, bg_image, bg_video, video_handling_options])
|
196 |
|
197 |
-
mp4_l = list(map(str ,pathlib.Path(".").rglob("*.mp4")))
|
198 |
-
req = []
|
199 |
-
for path in mp4_l:
|
200 |
-
req.extend(
|
201 |
-
[
|
202 |
-
[path, "Video", None, "background.mp4"],
|
203 |
-
[path, "Image", "images.webp", None],
|
204 |
-
[path, "Color", None, None],
|
205 |
-
]
|
206 |
-
)
|
207 |
-
|
208 |
-
examples = gr.Examples(
|
209 |
-
req,
|
210 |
-
inputs=[in_video, bg_type, bg_image, bg_video],
|
211 |
-
outputs=[stream_image, out_video, time_textbox],
|
212 |
-
fn=fn,
|
213 |
-
cache_examples=True,
|
214 |
-
cache_mode="eager",
|
215 |
-
)
|
216 |
-
|
217 |
-
'''
|
218 |
examples = gr.Examples(
|
219 |
[
|
220 |
["rickroll-2sec.mp4", "Video", None, "background.mp4"],
|
@@ -227,7 +206,6 @@ with gr.Blocks(theme=gr.themes.Ocean()) as demo:
|
|
227 |
cache_examples=True,
|
228 |
cache_mode="eager",
|
229 |
)
|
230 |
-
'''
|
231 |
|
232 |
submit_button.click(
|
233 |
fn,
|
|
|
194 |
|
195 |
bg_type.change(update_visibility, inputs=bg_type, outputs=[color_picker, bg_image, bg_video, video_handling_options])
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
examples = gr.Examples(
|
198 |
[
|
199 |
["rickroll-2sec.mp4", "Video", None, "background.mp4"],
|
|
|
206 |
cache_examples=True,
|
207 |
cache_mode="eager",
|
208 |
)
|
|
|
209 |
|
210 |
submit_button.click(
|
211 |
fn,
|