Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def predict(image):
|
|
| 48 |
|
| 49 |
iface = gr.Interface(
|
| 50 |
fn=predict,
|
| 51 |
-
inputs=gr.Image(type="pil",
|
| 52 |
outputs=gr.Label(num_top_classes=10),
|
| 53 |
title="MNIST Digit Classifier (PyTorch)"
|
| 54 |
)
|
|
|
|
| 48 |
|
| 49 |
iface = gr.Interface(
|
| 50 |
fn=predict,
|
| 51 |
+
inputs=gr.Image(type="pil", image_mode="L", label="Draw a digit"),
|
| 52 |
outputs=gr.Label(num_top_classes=10),
|
| 53 |
title="MNIST Digit Classifier (PyTorch)"
|
| 54 |
)
|