pngwn HF staff echarlaix HF staff commited on
Commit
dc3112c
1 Parent(s): 7890ebe

increase-inference (#1)

Browse files

- Increase number of iteration (ee158fada80aa3bc08e2473c5fa4c50b795b9d9f)


Co-authored-by: Ella Charlaix <echarlaix@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,7 +41,7 @@ def fn(sign, cat):
41
 
42
  response = pipe(starting_text, max_length=(len(starting_text) + random.randint(60, 90)), num_return_sequences=1)
43
  pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
44
- image = pipe(response[0]["generated_text"], num_inference_steps=5).images[0]
45
  return [image, starting_text]
46
 
47
 
@@ -104,4 +104,4 @@ with block:
104
  )
105
 
106
 
107
- block.queue(concurrency_count=40, max_size=20).launch(max_threads=150)
 
41
 
42
  response = pipe(starting_text, max_length=(len(starting_text) + random.randint(60, 90)), num_return_sequences=1)
43
  pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
44
+ image = pipe(response[0]["generated_text"], num_inference_steps=25).images[0]
45
  return [image, starting_text]
46
 
47
 
 
104
  )
105
 
106
 
107
+ block.queue(concurrency_count=40, max_size=20).launch(max_threads=150)