Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -142,16 +142,15 @@ with gr.Blocks(css="style.css") as demo:
|
|
142 |
elem_id="video_output"
|
143 |
)
|
144 |
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
api_name = "instant_video"
|
155 |
)
|
156 |
|
157 |
gr.Examples(
|
@@ -167,7 +166,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
167 |
],
|
168 |
fn=generate_image,
|
169 |
inputs=[prompt],
|
170 |
-
outputs=video,
|
171 |
cache_examples=True,
|
172 |
)
|
173 |
|
|
|
142 |
elem_id="video_output"
|
143 |
)
|
144 |
|
145 |
+
gr.on(triggers=[
|
146 |
+
submit.click,
|
147 |
+
prompt.submit
|
148 |
+
],
|
149 |
+
fn = generate_image,
|
150 |
+
inputs = [prompt, select_base, select_motion, select_step],
|
151 |
+
outputs = [video],
|
152 |
+
api_name = "instant_video",
|
153 |
+
queue = False
|
|
|
154 |
)
|
155 |
|
156 |
gr.Examples(
|
|
|
166 |
],
|
167 |
fn=generate_image,
|
168 |
inputs=[prompt],
|
169 |
+
outputs=[video],
|
170 |
cache_examples=True,
|
171 |
)
|
172 |
|