Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -25,11 +25,11 @@ def classify_image(image):
|
|
| 25 |
return predicted_class
|
| 26 |
|
| 27 |
# Define the Gradio interface
|
| 28 |
-
|
| 29 |
-
|
| 30 |
|
| 31 |
# Create the Gradio interface
|
| 32 |
-
interface = gr.Interface(fn=classify_image, inputs=
|
| 33 |
|
| 34 |
# Launch the interface
|
| 35 |
interface.launch()
|
|
|
|
| 25 |
return predicted_class
|
| 26 |
|
| 27 |
# Define the Gradio interface
|
| 28 |
+
inputs = gr.inputs.Image(type="pil", label="Upload Image")
|
| 29 |
+
outputs = gr.outputs.Label()
|
| 30 |
|
| 31 |
# Create the Gradio interface
|
| 32 |
+
interface = gr.Interface(fn=classify_image, inputs=inputs, outputs=outputs, title="Image Classifier")
|
| 33 |
|
| 34 |
# Launch the interface
|
| 35 |
interface.launch()
|