Uthar commited on
Commit
4368fa0
·
verified ·
1 Parent(s): 6adf4c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -6,7 +6,7 @@ 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 hair. open jeans. shredded ripped torn shirt. coy smile. 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()
@@ -94,8 +94,7 @@ async def infer(model_str, prompt, nprompt="", height=0, width=0, steps=0, cfg=0
94
  def gen_fn(model_str, prompt, nprompt="", height=0, width=0, steps=0, cfg=0, seed=-1):
95
  try:
96
  loop = asyncio.new_event_loop()
97
- result = loop.run_until_complete(infer(model_str, prompt, nprompt,
98
- height, width, steps, cfg, seed, inference_timeout))
99
  except (Exception, asyncio.CancelledError) as e:
100
  print(e)
101
  print(f"gen_fn: Task aborted: {model_str}")
 
6
  from threading import RLock
7
  from datetime import datetime
8
 
9
+ preSetPrompt = "tall slender athletic 18+ caucasian woman. gorgeous face. perfect small tits. short hair. open jeans. shredded ripped torn shirt. coy smile. 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()
 
94
  def gen_fn(model_str, prompt, nprompt="", height=0, width=0, steps=0, cfg=0, seed=-1):
95
  try:
96
  loop = asyncio.new_event_loop()
97
+ result = loop.run_until_complete(infer(model_str, prompt, nprompt, height, width, steps, cfg, seed, inference_timeout))
 
98
  except (Exception, asyncio.CancelledError) as e:
99
  print(e)
100
  print(f"gen_fn: Task aborted: {model_str}")