Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -268,21 +268,21 @@ with block:
|
|
268 |
result_gallery = gr.Gallery(height=512, object_fit='contain', label='Outputs', columns=4)
|
269 |
|
270 |
input_fg.change(lambda: ["", gr.update(interactive=True), gr.update(interactive=False), gr.update(interactive=False)],
|
271 |
-
outputs=[prompt, prompt_gen_button, key_gen_button
|
272 |
|
273 |
prompt_gen_button.click(
|
274 |
fn=interrogator_process,
|
275 |
inputs=[input_fg],
|
276 |
outputs=[prompt, i2v_input_text]
|
277 |
).then(lambda: [gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=False)],
|
278 |
-
outputs=[prompt_gen_button, key_gen_button
|
279 |
|
280 |
key_gen_button.click(
|
281 |
fn=process,
|
282 |
inputs=[input_fg, prompt, input_undo_steps, image_width, image_height, seed, steps, n_prompt, cfg],
|
283 |
outputs=[result_gallery]
|
284 |
).then(lambda: [gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True)],
|
285 |
-
outputs=[prompt_gen_button, key_gen_button
|
286 |
|
287 |
|
288 |
dbs = [
|
|
|
268 |
result_gallery = gr.Gallery(height=512, object_fit='contain', label='Outputs', columns=4)
|
269 |
|
270 |
input_fg.change(lambda: ["", gr.update(interactive=True), gr.update(interactive=False), gr.update(interactive=False)],
|
271 |
+
outputs=[prompt, prompt_gen_button, key_gen_button])
|
272 |
|
273 |
prompt_gen_button.click(
|
274 |
fn=interrogator_process,
|
275 |
inputs=[input_fg],
|
276 |
outputs=[prompt, i2v_input_text]
|
277 |
).then(lambda: [gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=False)],
|
278 |
+
outputs=[prompt_gen_button, key_gen_button])
|
279 |
|
280 |
key_gen_button.click(
|
281 |
fn=process,
|
282 |
inputs=[input_fg, prompt, input_undo_steps, image_width, image_height, seed, steps, n_prompt, cfg],
|
283 |
outputs=[result_gallery]
|
284 |
).then(lambda: [gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True)],
|
285 |
+
outputs=[prompt_gen_button, key_gen_button])
|
286 |
|
287 |
|
288 |
dbs = [
|