ginipick commited on
Commit
9dbfa64
1 Parent(s): 6a3cd83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -19
app.py CHANGED
@@ -208,26 +208,21 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
208
  def update_seed():
209
  return get_random_seed()
210
 
211
- generate_btn.click(
212
- process_and_save_image,
213
- inputs=[height, width, steps, scales, prompt, seed],
 
 
214
 
 
 
 
 
215
 
216
- generate_btn.click(
217
- process_and_save_image,
218
- inputs=[height, width, steps, scales, prompt, seed],
219
- outputs=output
220
- )
221
-
222
- randomize_seed.click(
223
- update_seed,
224
- outputs=[seed]
225
- )
226
-
227
- generate_btn.click(
228
- update_seed,
229
- outputs=[seed]
230
- )
231
 
232
  if __name__ == "__main__":
233
- demo.launch(allowed_paths=[PERSISTENT_DIR])
 
208
  def update_seed():
209
  return get_random_seed()
210
 
211
+ generate_btn.click(
212
+ process_and_save_image,
213
+ inputs=[height, width, steps, scales, prompt, seed],
214
+ outputs=output
215
+ )
216
 
217
+ randomize_seed.click(
218
+ update_seed,
219
+ outputs=[seed]
220
+ )
221
 
222
+ generate_btn.click(
223
+ update_seed,
224
+ outputs=[seed]
225
+ )
 
 
 
 
 
 
 
 
 
 
 
226
 
227
  if __name__ == "__main__":
228
+ demo.launch(allowed_paths=[PERSISTENT_DIR])