ehristoforu commited on
Commit
9ad0b8b
1 Parent(s): fc6e54f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -78,7 +78,7 @@ def generate(
78
  negative_prompt = "" # type: ignore
79
  images = pipe(
80
  prompt=f'''{prompt}, best quality, HD, "*aesthetic*"''',
81
- negative_prompt=f"{negative_prompt}, bad quality, bad anatomy, worst quality, low quality, low resolutions, extra fingers, blur, blurry, ugly, wrongs proportions, watermark, image artifacts, lowres, ugly, jpeg artifacts, deformed, noisy image",
82
  width=width,
83
  height=height,
84
  guidance_scale=guidance_scale,
@@ -130,12 +130,14 @@ with gr.Blocks(title="Mobius", css=css) as demo:
130
  result = gr.Gallery(label="Result", columns=1, preview=True, show_label=False)
131
  with gr.Accordion("Advanced options", open=False):
132
  with gr.Row():
133
- use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=False)
134
  negative_prompt = gr.Text(
135
  label="Negative prompt",
136
- max_lines=1,
 
 
137
  placeholder="Enter a negative prompt",
138
- visible=False,
139
  )
140
  seed = gr.Slider(
141
  label="Seed",
@@ -150,14 +152,14 @@ with gr.Blocks(title="Mobius", css=css) as demo:
150
  width = gr.Slider(
151
  label="Width",
152
  minimum=512,
153
- maximum=1536,
154
  step=8,
155
  value=1024,
156
  )
157
  height = gr.Slider(
158
  label="Height",
159
  minimum=512,
160
- maximum=1536,
161
  step=8,
162
  value=1024,
163
  )
 
78
  negative_prompt = "" # type: ignore
79
  images = pipe(
80
  prompt=f'''{prompt}, best quality, HD, "*aesthetic*"''',
81
+ negative_prompt=f"{negative_prompt}",
82
  width=width,
83
  height=height,
84
  guidance_scale=guidance_scale,
 
130
  result = gr.Gallery(label="Result", columns=1, preview=True, show_label=False)
131
  with gr.Accordion("Advanced options", open=False):
132
  with gr.Row():
133
+ use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)
134
  negative_prompt = gr.Text(
135
  label="Negative prompt",
136
+ max_lines=6,
137
+ lines=4,
138
+ value="(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, (NSFW:0.25)",
139
  placeholder="Enter a negative prompt",
140
+ visible=True,
141
  )
142
  seed = gr.Slider(
143
  label="Seed",
 
152
  width = gr.Slider(
153
  label="Width",
154
  minimum=512,
155
+ maximum=2048,
156
  step=8,
157
  value=1024,
158
  )
159
  height = gr.Slider(
160
  label="Height",
161
  minimum=512,
162
+ maximum=2048,
163
  step=8,
164
  value=1024,
165
  )