Spaces:
Running
on
Zero
Running
on
Zero
Update
Browse files
app.py
CHANGED
@@ -82,9 +82,8 @@ with gr.Blocks(css_paths="style.css") as demo:
|
|
82 |
show_label=False,
|
83 |
max_lines=1,
|
84 |
placeholder="Enter your prompt",
|
85 |
-
|
86 |
)
|
87 |
-
run_button = gr.Button("Generate video", scale=0)
|
88 |
result = gr.Video(label="Result", show_label=False)
|
89 |
with gr.Accordion("Advanced options", open=False):
|
90 |
seed = gr.Slider(
|
@@ -124,8 +123,7 @@ with gr.Blocks(css_paths="style.css") as demo:
|
|
124 |
fn=generate,
|
125 |
)
|
126 |
|
127 |
-
|
128 |
-
triggers=[prompt.submit, run_button.click],
|
129 |
fn=randomize_seed_fn,
|
130 |
inputs=[seed, randomize_seed],
|
131 |
outputs=seed,
|
|
|
82 |
show_label=False,
|
83 |
max_lines=1,
|
84 |
placeholder="Enter your prompt",
|
85 |
+
submit_btn=True,
|
86 |
)
|
|
|
87 |
result = gr.Video(label="Result", show_label=False)
|
88 |
with gr.Accordion("Advanced options", open=False):
|
89 |
seed = gr.Slider(
|
|
|
123 |
fn=generate,
|
124 |
)
|
125 |
|
126 |
+
prompt.submit(
|
|
|
127 |
fn=randomize_seed_fn,
|
128 |
inputs=[seed, randomize_seed],
|
129 |
outputs=seed,
|