Uthar commited on
Commit
f0f9abd
·
verified ·
1 Parent(s): 2933b12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -7,7 +7,6 @@ import os
7
  from threading import RLock
8
  from datetime import datetime
9
 
10
- # preSetPrompt = "tall slender athletic 18+ caucasian woman. gorgeous face. perfect small tits. short hair. sassy smile. shredded ripped torn shirt. unbuttoned jeans. explicit. artistic. photorealistic. f1.4"
11
  preSetPrompt = thePrompt
12
  negPreSetPrompt = "[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness"
13
 
@@ -35,8 +34,8 @@ def load_fn(models):
35
 
36
  load_fn(models)
37
 
38
- num_models = 3
39
- max_images = 3
40
  inference_timeout = 400
41
  default_models = models[:num_models]
42
  MAX_SEED = 2**32-1
@@ -283,7 +282,7 @@ with gr.Blocks(head=CSS + JS) as demo:
283
  current_models = [gr.Textbox(m, visible=False) for m in default_models]
284
 
285
  with gr.Column(scale=2):
286
- gallery = gr.Gallery(label="Output", show_download_button=True,interactive=False, show_share_button=False, container=True, format="png", preview=True, object_fit="cover", columns=2, rows=2)
287
 
288
  for m, o in zip(current_models, output):
289
  gen_event = gr.on(triggers=[gen_button.click, txt_input.submit], fn=gen_fn,inputs=[m, txt_input, neg_input, height, width, steps, cfg, seed], outputs=[o], concurrency_limit=None, queue=False)
 
7
  from threading import RLock
8
  from datetime import datetime
9
 
 
10
  preSetPrompt = thePrompt
11
  negPreSetPrompt = "[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness"
12
 
 
34
 
35
  load_fn(models)
36
 
37
+ num_models = 6
38
+ max_images = num_models
39
  inference_timeout = 400
40
  default_models = models[:num_models]
41
  MAX_SEED = 2**32-1
 
282
  current_models = [gr.Textbox(m, visible=False) for m in default_models]
283
 
284
  with gr.Column(scale=2):
285
+ gallery = gr.Gallery(label="Output", visible=False, show_download_button=True,interactive=False, show_share_button=False, container=True, format="png", preview=True, object_fit="cover", columns=2, rows=2)
286
 
287
  for m, o in zip(current_models, output):
288
  gen_event = gr.on(triggers=[gen_button.click, txt_input.submit], fn=gen_fn,inputs=[m, txt_input, neg_input, height, width, steps, cfg, seed], outputs=[o], concurrency_limit=None, queue=False)