Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -49,8 +49,8 @@ def generate(
|
|
49 |
seed: Optional[int] = -1,
|
50 |
motion_bucket_id: int = 127,
|
51 |
fps_id: int = 25,
|
52 |
-
num_inference_steps: int =
|
53 |
-
num_frames: int =
|
54 |
output_folder: str = "outputs",
|
55 |
progress=gr.Progress(track_tqdm=True)):
|
56 |
|
@@ -128,7 +128,7 @@ with gr.Blocks(css=CSS, js=JS, theme="soft") as demo:
|
|
128 |
label="Inference steps",
|
129 |
info="Inference steps",
|
130 |
step=1,
|
131 |
-
value=
|
132 |
minimum=1,
|
133 |
maximum=50
|
134 |
)
|
@@ -142,7 +142,7 @@ with gr.Blocks(css=CSS, js=JS, theme="soft") as demo:
|
|
142 |
)
|
143 |
with gr.Row():
|
144 |
submit_btn = gr.Button(value="Generate")
|
145 |
-
stop_btn = gr.Button(value="Stop", variant="stop")
|
146 |
clear_btn = gr.ClearButton([image, seed, video])
|
147 |
gr.Examples(
|
148 |
examples=examples,
|
@@ -154,6 +154,6 @@ with gr.Blocks(css=CSS, js=JS, theme="soft") as demo:
|
|
154 |
)
|
155 |
|
156 |
submit_event = submit_btn.click(fn=generate, inputs=[image, seed, motion_bucket_id, fps_id,num_inference_steps, num_frames], outputs=[video, seed], api_name="video")
|
157 |
-
stop_btn.click(fn=None, inputs=None, outputs=None, cancels=[submit_event])
|
158 |
|
159 |
demo.queue().launch()
|
|
|
49 |
seed: Optional[int] = -1,
|
50 |
motion_bucket_id: int = 127,
|
51 |
fps_id: int = 25,
|
52 |
+
num_inference_steps: int = 10,
|
53 |
+
num_frames: int = 50,
|
54 |
output_folder: str = "outputs",
|
55 |
progress=gr.Progress(track_tqdm=True)):
|
56 |
|
|
|
128 |
label="Inference steps",
|
129 |
info="Inference steps",
|
130 |
step=1,
|
131 |
+
value=10,
|
132 |
minimum=1,
|
133 |
maximum=50
|
134 |
)
|
|
|
142 |
)
|
143 |
with gr.Row():
|
144 |
submit_btn = gr.Button(value="Generate")
|
145 |
+
#stop_btn = gr.Button(value="Stop", variant="stop")
|
146 |
clear_btn = gr.ClearButton([image, seed, video])
|
147 |
gr.Examples(
|
148 |
examples=examples,
|
|
|
154 |
)
|
155 |
|
156 |
submit_event = submit_btn.click(fn=generate, inputs=[image, seed, motion_bucket_id, fps_id,num_inference_steps, num_frames], outputs=[video, seed], api_name="video")
|
157 |
+
#stop_btn.click(fn=None, inputs=None, outputs=None, cancels=[submit_event])
|
158 |
|
159 |
demo.queue().launch()
|