Spaces:
Running
on
Zero
Running
on
Zero
Update gradio_app.py
Browse files- gradio_app.py +1 -2
gradio_app.py
CHANGED
|
@@ -5,7 +5,6 @@ from scripts.gradio.i2v_test_application import Image2Video
|
|
| 5 |
import spaces
|
| 6 |
sys.path.insert(1, os.path.join(sys.path[0], 'lvdm'))
|
| 7 |
|
| 8 |
-
|
| 9 |
i2v_examples_interp_512 = [
|
| 10 |
['prompts/512_interp/74906_1462_frame1.png', 'walking man', 50, 7.5, 1.0, 10, 123, 'prompts/512_interp/74906_1462_frame3.png'],
|
| 11 |
['prompts/512_interp/Japan_v2_2_062266_s2_frame1.png', 'an anime scene', 50, 7.5, 1.0, 10, 789, 'prompts/512_interp/Japan_v2_2_062266_s2_frame3.png'],
|
|
@@ -54,7 +53,7 @@ def dynamicrafter_demo(result_dir='./tmp/', res=512):
|
|
| 54 |
inputs=[i2v_input_image, i2v_input_text, i2v_steps, i2v_cfg_scale, i2v_eta, i2v_motion, i2v_seed, i2v_input_image2],
|
| 55 |
outputs=[i2v_output_video],
|
| 56 |
fn = image2video.get_image,
|
| 57 |
-
cache_examples=
|
| 58 |
)
|
| 59 |
i2v_end_btn.click(inputs=[i2v_input_image, i2v_input_text, i2v_steps, i2v_cfg_scale, i2v_eta, i2v_motion, i2v_seed, i2v_input_image2],
|
| 60 |
outputs=[i2v_output_video],
|
|
|
|
| 5 |
import spaces
|
| 6 |
sys.path.insert(1, os.path.join(sys.path[0], 'lvdm'))
|
| 7 |
|
|
|
|
| 8 |
i2v_examples_interp_512 = [
|
| 9 |
['prompts/512_interp/74906_1462_frame1.png', 'walking man', 50, 7.5, 1.0, 10, 123, 'prompts/512_interp/74906_1462_frame3.png'],
|
| 10 |
['prompts/512_interp/Japan_v2_2_062266_s2_frame1.png', 'an anime scene', 50, 7.5, 1.0, 10, 789, 'prompts/512_interp/Japan_v2_2_062266_s2_frame3.png'],
|
|
|
|
| 53 |
inputs=[i2v_input_image, i2v_input_text, i2v_steps, i2v_cfg_scale, i2v_eta, i2v_motion, i2v_seed, i2v_input_image2],
|
| 54 |
outputs=[i2v_output_video],
|
| 55 |
fn = image2video.get_image,
|
| 56 |
+
cache_examples="lazy",
|
| 57 |
)
|
| 58 |
i2v_end_btn.click(inputs=[i2v_input_image, i2v_input_text, i2v_steps, i2v_cfg_scale, i2v_eta, i2v_motion, i2v_seed, i2v_input_image2],
|
| 59 |
outputs=[i2v_output_video],
|