Uthar commited on
Commit
5b99005
·
verified ·
1 Parent(s): 8af51fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,12 +1,13 @@
1
  import gradio as gr
2
  from all_models import models
 
3
  from externalmod import gr_Interface_load, save_image, randomize_seed
4
  import asyncio
5
  import os
6
  from threading import RLock
7
  from datetime import datetime
8
 
9
- preSetPrompt = "tall slender athletic 18+ caucasian woman. gorgeous face. perky tits. short wet messy hair. open jeans. torn shirt. challenging. explicit. artistic. photorealistic. f1.4"
10
  negPreSetPrompt = "[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness"
11
 
12
  lock = RLock()
@@ -33,13 +34,12 @@ def load_fn(models):
33
 
34
  load_fn(models)
35
 
36
- num_models = 12
37
- max_images = 12
38
  inference_timeout = 400
39
  default_models = models[:num_models]
40
  MAX_SEED = 2**32-1
41
 
42
-
43
  def extend_choices(choices):
44
  return choices[:num_models] + (num_models - len(choices[:num_models])) * ['NA']
45
 
 
1
  import gradio as gr
2
  from all_models import models
3
+ from _prompt import thePrompt, howManyModelsToUse
4
  from externalmod import gr_Interface_load, save_image, randomize_seed
5
  import asyncio
6
  import os
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
 
13
  lock = RLock()
 
34
 
35
  load_fn(models)
36
 
37
+ num_models = howManyModelsToUse
38
+ max_images = howManyModelsToUse
39
  inference_timeout = 400
40
  default_models = models[:num_models]
41
  MAX_SEED = 2**32-1
42
 
 
43
  def extend_choices(choices):
44
  return choices[:num_models] + (num_models - len(choices[:num_models])) * ['NA']
45