Manjushri commited on
Commit
7f09d0f
·
1 Parent(s): a520fc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,4 +17,4 @@ def genie (prompt, scale, steps, seed):
17
  generator = torch.Generator(device=device).manual_seed(seed)
18
  images = pipe(prompt, width=768, height=768, num_inference_steps=steps, guidance_scale=scale, num_images_per_prompt=1, generator=generator).images
19
  return images[0]
20
- gr.Interface(fn=genie, inputs=['text', gr.Slider(1, 100, 20), gr.Slider(1, maximum=20, value=10, step=1), gr.Slider(minimum=1, step=1, maximum=9999999999999999, randomize=True)], outputs='image', title="Stable Diffusion 2.0 CPU", description="SD 2.0 CPU. <b>WARNING:</b> Extremely Slow. 130s/Iteration. Expect 25-50mins an image for 10-20 iterations respectively.", article = "Code Monkey: <a href=\"https://huggingface.co/Manjushri\">Manjushri</a>").launch()
 
17
  generator = torch.Generator(device=device).manual_seed(seed)
18
  images = pipe(prompt, width=768, height=768, num_inference_steps=steps, guidance_scale=scale, num_images_per_prompt=1, generator=generator).images
19
  return images[0]
20
+ gr.Interface(fn=genie, inputs=['text', gr.Slider(1, 100, 20), gr.Slider(1, maximum=20, value=10, step=1), gr.Slider(minimum=1, step=1, maximum=999999999999999999, randomize=True)], outputs='image', title="Stable Diffusion 2.0 CPU", description="SD 2.0 CPU. <b>WARNING:</b> Extremely Slow. 130s/Iteration. Expect 25-50mins an image for 10-20 iterations respectively.", article = "Code Monkey: <a href=\"https://huggingface.co/Manjushri\">Manjushri</a>").launch()