Spaces:
Sleeping
Sleeping
mochuan zhan commited on
Commit ·
fceab91
1
Parent(s): 9159eeb
fix pad
Browse files
app.py
CHANGED
|
@@ -107,11 +107,7 @@ def classify_image(image):
|
|
| 107 |
iface = gr.Interface(
|
| 108 |
fn=classify_image,
|
| 109 |
inputs=gr.Sketchpad(
|
| 110 |
-
tool="editor",
|
| 111 |
-
type="pil",
|
| 112 |
-
invert_colors=True,
|
| 113 |
shape=(224, 224),
|
| 114 |
-
image_mode="L",
|
| 115 |
label="Draw a digit"
|
| 116 |
),
|
| 117 |
outputs=gr.Label(num_top_classes=1),
|
|
|
|
| 107 |
iface = gr.Interface(
|
| 108 |
fn=classify_image,
|
| 109 |
inputs=gr.Sketchpad(
|
|
|
|
|
|
|
|
|
|
| 110 |
shape=(224, 224),
|
|
|
|
| 111 |
label="Draw a digit"
|
| 112 |
),
|
| 113 |
outputs=gr.Label(num_top_classes=1),
|