hysts HF staff commited on
Commit
0918748
1 Parent(s): 0edd51d
Files changed (2) hide show
  1. README.md +2 -0
  2. app.py +24 -0
README.md CHANGED
@@ -12,3 +12,5 @@ suggested_hardware: a10g-small
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
15
+
16
+ https://arxiv.org/abs/2307.01952
app.py CHANGED
@@ -286,6 +286,30 @@ with gr.Blocks(css='style.css') as demo:
286
  outputs=result,
287
  api_name=False,
288
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
289
  run_button.click(
290
  fn=randomize_seed_fn,
291
  inputs=[seed, randomize_seed],
 
286
  outputs=result,
287
  api_name=False,
288
  )
289
+ prompt_2.submit(
290
+ fn=randomize_seed_fn,
291
+ inputs=[seed, randomize_seed],
292
+ outputs=seed,
293
+ queue=False,
294
+ api_name=False,
295
+ ).then(
296
+ fn=generate,
297
+ inputs=inputs,
298
+ outputs=result,
299
+ api_name=False,
300
+ )
301
+ negative_prompt_2.submit(
302
+ fn=randomize_seed_fn,
303
+ inputs=[seed, randomize_seed],
304
+ outputs=seed,
305
+ queue=False,
306
+ api_name=False,
307
+ ).then(
308
+ fn=generate,
309
+ inputs=inputs,
310
+ outputs=result,
311
+ api_name=False,
312
+ )
313
  run_button.click(
314
  fn=randomize_seed_fn,
315
  inputs=[seed, randomize_seed],