Thafx commited on
Commit
4a73efe
1 Parent(s): 999273d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -31,8 +31,8 @@ def genie (prompt, negative_prompt, height, width, scale, steps, seed, prompt_2,
31
  image = refiner(prompt=prompt, prompt_2=prompt_2, negative_prompt=negative_prompt, negative_prompt_2=negative_prompt_2, image=int_image, denoising_start=high_noise_frac).images[0]
32
  return image
33
 
34
- gr.Interface(fn=genie, inputs=[gr.Textbox(label='What you want the AI to generate. 77 Token Limit.'),
35
- gr.Textbox(label='What you Do Not want the AI to generate.'),
36
  gr.Slider(512, 1024, 768, step=128, label='Height'),
37
  gr.Slider(512, 1024, 768, step=128, label='Width'),
38
  gr.Slider(1, 15, 10, label='Guidance Scale'),
@@ -43,4 +43,6 @@ gr.Interface(fn=genie, inputs=[gr.Textbox(label='What you want the AI to generat
43
  gr.Slider(minimum=.7, maximum=.99, value=.95, step=.01, label='Refiner Denoise Start %')],
44
  outputs='image',
45
  title="Stable Diffusion XL 1.0 CPU or GPU",
46
- description="SDXL 1.0 CPU or GPU. Currently running on CPU.<br><br><b>WARNING:</b> Extremely Slow. 65s/Iteration. Expect 25-50mins an image for 25-50 iterations respectively. This model is capable of producing NSFW (Softcore) images.").launch(debug=True, max_threads=80)
 
 
 
31
  image = refiner(prompt=prompt, prompt_2=prompt_2, negative_prompt=negative_prompt, negative_prompt_2=negative_prompt_2, image=int_image, denoising_start=high_noise_frac).images[0]
32
  return image
33
 
34
+ gr.Interface(fn=genie, inputs=[gr.Textbox(label='Positive Promt. 77 Token Limit.'),
35
+ gr.Textbox(label='Negative Prompt.'),
36
  gr.Slider(512, 1024, 768, step=128, label='Height'),
37
  gr.Slider(512, 1024, 768, step=128, label='Width'),
38
  gr.Slider(1, 15, 10, label='Guidance Scale'),
 
43
  gr.Slider(minimum=.7, maximum=.99, value=.95, step=.01, label='Refiner Denoise Start %')],
44
  outputs='image',
45
  title="Stable Diffusion XL 1.0 CPU or GPU",
46
+ description=("Realistic Vision XL V1.0 Demo for",<a href="https://huggingface.co/SG161222/RealVisXL_V1.0">Realistic Vision XL V1</a>, Stable Diffusion model by <a href="https://huggingface.co/SG161222/"><abbr title="SG1611222">Eugene</abbr></a><br><br>CPU or GPU. Currently running on <b>CPU</b><br><br>)
47
+ article = "Please use the prompt template below to get an example of the desired generation results:<br><b>Positive prompt:</b> dark shot, photo of cute 24 y.o blonde woman, perfect eyes, skin moles, short hair, looks at viewer, cinematic shot, hard shadows<br><b>Negative prompt:</b> (worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth <br> CFG scale: 7, Seed: 4271781772<br><br> <b>WARNING:</b> Be patient, as generation is Slow.<br>65s/Iteration. Expected Generation Time is 25-50mins an image for 25-50 iterations respectively. This model is capable of producing mild NSFW images"
48
+ .launch(debug=True, max_threads=80)