renyuxi Yanzuo commited on
Commit
285daf0
1 Parent(s): 49fbf87

Update app.py (#4)

Browse files

- Update app.py (b97a53d75197e147c67f40cad1575c3611d1348d)


Co-authored-by: Yanzuo Lu <Yanzuo@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ with gr.Blocks(js=js_func) as demo:
55
  with gr.Row():
56
  with gr.Column():
57
  # scribble = gr.Image(source="canvas", tool="color-sketch", shape=(512, 512), height=768, width=768, type="pil")
58
- scribble = gr.ImageEditor(type="pil", image_mode="L", crop_size=(512, 512), sources=(), brush=gr.Brush(color_mode="fixed", colors=["#FFFFFF"]))
59
  # scribble_out = gr.Image(height=384, width=384)
60
  num_images = gr.Slider(label="Number of Images", minimum=1, maximum=8, step=1, value=4, interactive=True)
61
  steps = gr.Slider(label="Inference Steps", minimum=1, maximum=8, step=1, value=1, interactive=True)
 
55
  with gr.Row():
56
  with gr.Column():
57
  # scribble = gr.Image(source="canvas", tool="color-sketch", shape=(512, 512), height=768, width=768, type="pil")
58
+ scribble = gr.ImageEditor(type="pil", image_mode="L", crop_size=(512, 512), sources=(), brush=gr.Brush(color_mode="fixed", colors=["#FFFFFF"]), canvas_size=(512, 512))
59
  # scribble_out = gr.Image(height=384, width=384)
60
  num_images = gr.Slider(label="Number of Images", minimum=1, maximum=8, step=1, value=4, interactive=True)
61
  steps = gr.Slider(label="Inference Steps", minimum=1, maximum=8, step=1, value=1, interactive=True)