Manjushri commited on
Commit
b4932e6
1 Parent(s): f3ed143

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -27,4 +27,12 @@ def genie (prompt, negative_prompt, scale, steps, seed):
27
  image = refiner(prompt=prompt, negative_prompt=negative_prompt, image=int_image).images[0]
28
  return image
29
 
30
- gr.Interface(fn=genie, inputs=[gr.Textbox(label='What you want the AI to generate. 77 Token Limit.'), gr.Textbox(label='What you Do Not want the AI to generate.'), gr.Slider(1, 15, 10), gr.Slider(25, maximum=50, value=25, step=1), gr.Slider(minimum=1, step=1, maximum=999999999999999999, randomize=True)], outputs='image', title="Stable Diffusion XL 1.0 CPU", description="SDXL 1.0 CPU. <b>WARNING:</b> Extremely Slow. 65s/Iteration. Expect 25-50mins an image for 25-50 iterations respectively.", article = "Code Monkey: <a href=\"https://huggingface.co/Manjushri\">Manjushri</a>").launch(debug=True, max_threads=80)
 
 
 
 
 
 
 
 
 
27
  image = refiner(prompt=prompt, negative_prompt=negative_prompt, image=int_image).images[0]
28
  return image
29
 
30
+ gr.Interface(fn=genie, inputs=[gr.Textbox(label='What you want the AI to generate. 77 Token Limit.'),
31
+ gr.Textbox(label='What you Do Not want the AI to generate.'),
32
+ gr.Slider(1, 15, 10, label='Guidance Scale'),
33
+ gr.Slider(25, maximum=50, value=25, step=1, label='Number of Iterations'),
34
+ gr.Slider(minimum=1, step=1, maximum=999999999999999999, randomize=True)],
35
+ outputs='image',
36
+ title="Stable Diffusion XL 1.0 CPU",
37
+ description="SDXL 1.0 CPU. <br><br><b>WARNING:</b> Extremely Slow. 65s/Iteration. Expect 25-50mins an image for 25-50 iterations respectively.",
38
+ article = "Code Monkey: <a href=\"https://huggingface.co/Manjushri\">Manjushri</a>").launch(debug=True, max_threads=80)