Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
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."
|