Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def predict_image(image):
|
|
45 |
# Create a Gradio interface
|
46 |
interface = gr.Interface(
|
47 |
fn=predict_image,
|
48 |
-
inputs=gr.
|
49 |
outputs="text",
|
50 |
title="Image Classification",
|
51 |
description="Upload an image to classify it using the pre-trained model."
|
|
|
45 |
# Create a Gradio interface
|
46 |
interface = gr.Interface(
|
47 |
fn=predict_image,
|
48 |
+
inputs=gr.Image(type="pil"), # Updated to gr.Image
|
49 |
outputs="text",
|
50 |
title="Image Classification",
|
51 |
description="Upload an image to classify it using the pre-trained model."
|