linoyts HF staff commited on
Commit
2a4a91e
1 Parent(s): 664a77c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -53,7 +53,7 @@ style_list = [
53
  {
54
  "name": "(No style)",
55
  "prompt": "{prompt}",
56
- "negative_prompt": "",
57
  },
58
  {
59
  "name": "Cinematic",
@@ -211,7 +211,7 @@ def run(
211
  height=new_height,
212
  ).images[0]
213
 
214
- return (out, controlnet_img)
215
 
216
 
217
  with gr.Blocks(css="style.css") as demo:
@@ -225,7 +225,7 @@ with gr.Blocks(css="style.css") as demo:
225
  with gr.Row():
226
  with gr.Column():
227
  with gr.Group():
228
- image = gr.ImageEditor(type="pil", image_mode="L", crop_size=(512, 512),brush=gr.Brush(color_mode="fixed", colors=["#00000"]))
229
  prompt = gr.Textbox(label="Prompt")
230
  style = gr.Dropdown(label="Style", choices=STYLE_NAMES, value=DEFAULT_STYLE_NAME)
231
  use_hed = gr.Checkbox(label="use HED detector", value=False, info="check this box if you upload an image instead of sketching")
 
53
  {
54
  "name": "(No style)",
55
  "prompt": "{prompt}",
56
+ "negative_prompt": "longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
57
  },
58
  {
59
  "name": "Cinematic",
 
211
  height=new_height,
212
  ).images[0]
213
 
214
+ return (controlnet_img, out)
215
 
216
 
217
  with gr.Blocks(css="style.css") as demo:
 
225
  with gr.Row():
226
  with gr.Column():
227
  with gr.Group():
228
+ image = gr.ImageEditor(type="pil", image_mode="L", crop_size=(512, 512))
229
  prompt = gr.Textbox(label="Prompt")
230
  style = gr.Dropdown(label="Style", choices=STYLE_NAMES, value=DEFAULT_STYLE_NAME)
231
  use_hed = gr.Checkbox(label="use HED detector", value=False, info="check this box if you upload an image instead of sketching")