Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -202,7 +202,7 @@ def create_zoom_animation(previous_frame, next_frame, steps):
|
|
| 202 |
|
| 203 |
return interpolated_frames
|
| 204 |
|
| 205 |
-
def create_video_from_images(image_list, fps=
|
| 206 |
if not image_list:
|
| 207 |
return None
|
| 208 |
|
|
@@ -223,7 +223,7 @@ def create_video_from_images(image_list, fps=16):
|
|
| 223 |
@spaces.GPU(duration=70)
|
| 224 |
def loop_outpainting(image, width=1024, height=1024, overlap_width=6, num_inference_steps=8,
|
| 225 |
resize_option="custom", custom_resize_size=512, prompt_input=None,
|
| 226 |
-
alignment="Middle", num_iterations=6, fps=
|
| 227 |
progress=gr.Progress()):
|
| 228 |
current_image = image
|
| 229 |
if(current_image.width != 1024 or current_image.height != 1024):
|
|
@@ -384,9 +384,9 @@ with gr.Blocks(css=css) as demo:
|
|
| 384 |
)
|
| 385 |
with gr.Row():
|
| 386 |
num_iterations = gr.Slider(label="Number of iterations", minimum=2, maximum=24, step=1, value=6)
|
| 387 |
-
fps = gr.Slider(label="fps", minimum=1, maximum=24, value=
|
| 388 |
with gr.Row():
|
| 389 |
-
num_interpolation_frames = gr.Slider(label="Interpolation frames", minimum=0, maximum=10, step=1, value=
|
| 390 |
|
| 391 |
with gr.Column():
|
| 392 |
result = ImageSlider(
|
|
|
|
| 202 |
|
| 203 |
return interpolated_frames
|
| 204 |
|
| 205 |
+
def create_video_from_images(image_list, fps=24):
|
| 206 |
if not image_list:
|
| 207 |
return None
|
| 208 |
|
|
|
|
| 223 |
@spaces.GPU(duration=70)
|
| 224 |
def loop_outpainting(image, width=1024, height=1024, overlap_width=6, num_inference_steps=8,
|
| 225 |
resize_option="custom", custom_resize_size=512, prompt_input=None,
|
| 226 |
+
alignment="Middle", num_iterations=6, fps=24, num_interpolation_frames=18,
|
| 227 |
progress=gr.Progress()):
|
| 228 |
current_image = image
|
| 229 |
if(current_image.width != 1024 or current_image.height != 1024):
|
|
|
|
| 384 |
)
|
| 385 |
with gr.Row():
|
| 386 |
num_iterations = gr.Slider(label="Number of iterations", minimum=2, maximum=24, step=1, value=6)
|
| 387 |
+
fps = gr.Slider(label="fps", minimum=1, maximum=24, value=24)
|
| 388 |
with gr.Row():
|
| 389 |
+
num_interpolation_frames = gr.Slider(label="Interpolation frames", minimum=0, maximum=10, step=1, value=18)
|
| 390 |
|
| 391 |
with gr.Column():
|
| 392 |
result = ImageSlider(
|