heisenberg3376 commited on
Commit
33bf146
·
verified ·
1 Parent(s): a4110e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,10 +11,10 @@ def save_sketch(image):
11
  img.save("sketch.png")
12
  return "Sketch saved successfully!"
13
 
14
- # Create Gradio Sketchpad
15
  iface = gr.Interface(
16
  fn=save_sketch,
17
- inputs=gr.Sketchpad(shape=(256, 256)),
18
  outputs="text",
19
  title="Basic Drawing Canvas",
20
  description="Draw something and click submit to save the image."
 
11
  img.save("sketch.png")
12
  return "Sketch saved successfully!"
13
 
14
+ # Create Gradio Sketchpad (no `shape` argument needed)
15
  iface = gr.Interface(
16
  fn=save_sketch,
17
+ inputs=gr.Sketchpad(),
18
  outputs="text",
19
  title="Basic Drawing Canvas",
20
  description="Draw something and click submit to save the image."