Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def predict(image):
|
|
| 32 |
# Gradio Interface
|
| 33 |
demo = gr.Interface(
|
| 34 |
fn=predict,
|
| 35 |
-
inputs=gr.Image(
|
| 36 |
outputs="text",
|
| 37 |
title="MNIST Digit Classifier (InceptionV3)",
|
| 38 |
description="Upload a digit image (0–9) and get the predicted digit using a PyTorch InceptionV3 model."
|
|
|
|
| 32 |
# Gradio Interface
|
| 33 |
demo = gr.Interface(
|
| 34 |
fn=predict,
|
| 35 |
+
inputs=gr.Image(image_mode="L", label="Upload a 28x28 grayscale digit image"),
|
| 36 |
outputs="text",
|
| 37 |
title="MNIST Digit Classifier (InceptionV3)",
|
| 38 |
description="Upload a digit image (0–9) and get the predicted digit using a PyTorch InceptionV3 model."
|