artificialguybr commited on
Commit
d5fdc80
·
verified ·
1 Parent(s): d5efac9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -66,13 +66,17 @@ iface = gr.Interface(
66
  fn=generate_image,
67
  inputs=[
68
  gr.Textbox(label="Prompt", placeholder="Describe the image you want to generate"),
69
- gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", default="(worst quality, low quality, normal quality, lowres, low details, oversaturated, undersaturated, overexposed, underexposed, grayscale, bw, bad photo, bad photography, bad art:1.4), (watermark, signature, text font, username, error, logo, words, letters, digits, autograph, trademark, name:1.2), (blur, blurry, grainy), morbid, ugly, asymmetrical, mutated malformed, mutilated, poorly lit, bad shadow, draft, cropped, out of frame, cut off, censored, jpeg artifacts, out of focus, glitch, duplicate, (airbrushed, cartoon, anime, semi-realistic, cgi, render, blender, digital art, manga, amateur:1.3), (3D ,3D Game, 3D Game Scene, 3D Character:1.1), (bad hands, bad anatomy, bad body, bad face, bad teeth, bad arms, bad legs, deformities:1.3)"),
 
 
 
 
70
  gr.Dropdown(label="Sampler", choices=["DPM", "EulerA", "LMS", "DDIM"], value="DDIM"),
71
- gr.Number(label="Seed", value=0, step=1), # Ensure seed is treated correctly
72
  gr.Slider(label="Guidance Scale", minimum=1, maximum=9, value=5, step=1),
73
  gr.Slider(label="Inference Steps", minimum=5, maximum=100, value=35, step=1)
74
  ],
75
- outputs=gr.Image(label="Generated Image"),
76
  description = """
77
  <div style="text-align: center; font-size: 1.5em; margin-bottom: 20px;">
78
  <strong>Generate Stunning Images with Stable Diffusion XL</strong>
 
66
  fn=generate_image,
67
  inputs=[
68
  gr.Textbox(label="Prompt", placeholder="Describe the image you want to generate"),
69
+ gr.Textbox(
70
+ label="Negative Prompt",
71
+ placeholder="What should not be in the image",
72
+ default="(worst quality, low quality, normal quality, lowres, low details, oversaturated, undersaturated, overexposed, underexposed, grayscale, bw, bad photo, bad photography, bad art:1.4), (watermark, signature, text font, username, error, logo, words, letters, digits, autograph, trademark, name:1.2), (blur, blurry, grainy), morbid, ugly, asymmetrical, mutated malformed, mutilated, poorly lit, bad shadow, draft, cropped, out of frame, cut off, censored, jpeg artifacts, out of focus, glitch, duplicate, (airbrushed, cartoon, anime, semi-realistic, cgi, render, blender, digital art, manga, amateur:1.3), (3D ,3D Game, 3D Game Scene, 3D Character:1.1), (bad hands, bad anatomy, bad body, bad face, bad teeth, bad arms, bad legs, deformities:1.3)"
73
+ ),
74
  gr.Dropdown(label="Sampler", choices=["DPM", "EulerA", "LMS", "DDIM"], value="DDIM"),
75
+ gr.Number(label="Seed", value=0, step=1),
76
  gr.Slider(label="Guidance Scale", minimum=1, maximum=9, value=5, step=1),
77
  gr.Slider(label="Inference Steps", minimum=5, maximum=100, value=35, step=1)
78
  ],
79
+ outputs=gr.Image(label="Generated Image"), outputs=gr.Image(label="Generated Image"),
80
  description = """
81
  <div style="text-align: center; font-size: 1.5em; margin-bottom: 20px;">
82
  <strong>Generate Stunning Images with Stable Diffusion XL</strong>