Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ with gr.Blocks() as demo:
|
|
126 |
height_input = gr.Slider(minimum=SLIDER_MIN_H, maximum=SLIDER_MAX_H, step=MOD_VALUE, value=DEFAULT_H_SLIDER_VALUE, label=f"Output Height (multiple of {MOD_VALUE})")
|
127 |
width_input = gr.Slider(minimum=SLIDER_MIN_W, maximum=SLIDER_MAX_W, step=MOD_VALUE, value=DEFAULT_W_SLIDER_VALUE, label=f"Output Width (multiple of {MOD_VALUE})")
|
128 |
steps_slider = gr.Slider(minimum=1, maximum=8, step=1, value=4, label="Inference Steps")
|
129 |
-
guidance_scale_input = gr.Slider(minimum=0.0, maximum=5.0, step=0.01, value=
|
130 |
generate_button = gr.Button("Generate Video", variant="primary")
|
131 |
with gr.Column():
|
132 |
video_output = gr.Video(label="Generated Video", autoplay=True, interactive=False)
|
@@ -152,9 +152,12 @@ with gr.Blocks() as demo:
|
|
152 |
|
153 |
gr.Examples(
|
154 |
examples=[
|
155 |
-
[
|
|
|
156 |
[None, "a penguin playfully dancing in the snow, Antarctica", 1024, 720],
|
|
|
157 |
],
|
|
|
158 |
inputs=[input_image_component, prompt_input, height_input, width_input], outputs=[video_output, seed_input], fn=generate_video, cache_examples="lazy"
|
159 |
)
|
160 |
|
|
|
126 |
height_input = gr.Slider(minimum=SLIDER_MIN_H, maximum=SLIDER_MAX_H, step=MOD_VALUE, value=DEFAULT_H_SLIDER_VALUE, label=f"Output Height (multiple of {MOD_VALUE})")
|
127 |
width_input = gr.Slider(minimum=SLIDER_MIN_W, maximum=SLIDER_MAX_W, step=MOD_VALUE, value=DEFAULT_W_SLIDER_VALUE, label=f"Output Width (multiple of {MOD_VALUE})")
|
128 |
steps_slider = gr.Slider(minimum=1, maximum=8, step=1, value=4, label="Inference Steps")
|
129 |
+
guidance_scale_input = gr.Slider(minimum=0.0, maximum=5.0, step=0.01, value=0.0, label="Guidance Scale")
|
130 |
generate_button = gr.Button("Generate Video", variant="primary")
|
131 |
with gr.Column():
|
132 |
video_output = gr.Video(label="Generated Video", autoplay=True, interactive=False)
|
|
|
152 |
|
153 |
gr.Examples(
|
154 |
examples=[
|
155 |
+
[None, "A person eating spaghetti", 1024, 1024]
|
156 |
+
["cat.png", "The cat removes the glasses from its eyes.", 1088, 800]
|
157 |
[None, "a penguin playfully dancing in the snow, Antarctica", 1024, 720],
|
158 |
+
["peng.png", "a penguin running towards camera joyfully, Antarctica", 896, 512],
|
159 |
],
|
160 |
+
|
161 |
inputs=[input_image_component, prompt_input, height_input, width_input], outputs=[video_output, seed_input], fn=generate_video, cache_examples="lazy"
|
162 |
)
|
163 |
|