Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def predict_digit(image):
|
|
| 32 |
|
| 33 |
iface = gr.Interface(
|
| 34 |
fn=predict_digit,
|
| 35 |
-
inputs=gr.Image(image_mode='L',
|
| 36 |
outputs=gr.Label(num_top_classes=1),
|
| 37 |
title="MNIST Digit Classifier",
|
| 38 |
description="Draw a digit (0-9) and the model will predict it."
|
|
|
|
| 32 |
|
| 33 |
iface = gr.Interface(
|
| 34 |
fn=predict_digit,
|
| 35 |
+
inputs=gr.Image(image_mode='L', height=28, width=28),
|
| 36 |
outputs=gr.Label(num_top_classes=1),
|
| 37 |
title="MNIST Digit Classifier",
|
| 38 |
description="Draw a digit (0-9) and the model will predict it."
|