kadirnar commited on
Commit
fecff08
1 Parent(s): 34895ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -322,6 +322,7 @@ with gr.Blocks(css=css) as demo:
322
  step=0.1,
323
  value=7.0,
324
  )
 
325
 
326
  img2img_use_negative_prompt.change(
327
  fn=lambda x: gr.update(visible=x),
@@ -334,7 +335,7 @@ with gr.Blocks(css=css) as demo:
334
  triggers=[
335
  img2img_prompt.submit,
336
  img2img_negative_prompt.submit,
337
- run_button.click,
338
  ],
339
  fn=img2img_generate,
340
  inputs=[
@@ -352,7 +353,7 @@ with gr.Blocks(css=css) as demo:
352
  outputs=[img2img_output],
353
  api_name="img2img_run",
354
  )
355
-
356
 
357
  if __name__ == "__main__":
358
  demo.queue().launch()
 
322
  step=0.1,
323
  value=7.0,
324
  )
325
+ img2img_run_button = gr.Button("Generate", scale=0)
326
 
327
  img2img_use_negative_prompt.change(
328
  fn=lambda x: gr.update(visible=x),
 
335
  triggers=[
336
  img2img_prompt.submit,
337
  img2img_negative_prompt.submit,
338
+ img2img_run_button.click,
339
  ],
340
  fn=img2img_generate,
341
  inputs=[
 
353
  outputs=[img2img_output],
354
  api_name="img2img_run",
355
  )
356
+
357
 
358
  if __name__ == "__main__":
359
  demo.queue().launch()