Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -24,12 +24,8 @@ def classify_image(image):
|
|
| 24 |
|
| 25 |
return predicted_class
|
| 26 |
|
| 27 |
-
#
|
| 28 |
-
|
| 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()
|
|
|
|
| 24 |
|
| 25 |
return predicted_class
|
| 26 |
|
| 27 |
+
# Create the Gradio interface directly
|
| 28 |
+
interface = gr.Interface(classify_image, "image", "label", title="Image Classifier")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
# Launch the interface
|
| 31 |
interface.launch()
|