vishnumg commited on
Commit
d562c6a
1 Parent(s): ca8382f

Update app_sketch.py

Browse files
Files changed (1) hide show
  1. app_sketch.py +3 -9
app_sketch.py CHANGED
@@ -51,15 +51,9 @@ def create_demo(model: Model) -> gr.Blocks:
51
  with gr.Row():
52
  with gr.Column():
53
  with gr.Group():
54
- image = gr.Image(
55
- # source="canvas",
56
- tool="sketch",
57
- type="pil",
58
- image_mode="L",
59
- invert_colors=True,
60
- shape=(1024, 1024),
61
- brush_radius=4,
62
- height=600,
63
  )
64
  prompt = gr.Textbox(label="Prompt")
65
  style = gr.Dropdown(label="Style", choices=STYLE_NAMES, value=DEFAULT_STYLE_NAME)
 
51
  with gr.Row():
52
  with gr.Column():
53
  with gr.Group():
54
+ image = gr.ImageEditor(
55
+ type="numpy",
56
+ crop_size="1:1",
 
 
 
 
 
 
57
  )
58
  prompt = gr.Textbox(label="Prompt")
59
  style = gr.Dropdown(label="Style", choices=STYLE_NAMES, value=DEFAULT_STYLE_NAME)