Spaces:
Runtime error
Runtime error
Commit ·
ca93fdc
1
Parent(s): 2dca684
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def classifier(image):
|
|
| 12 |
texto = str(f'Predicted label: {classes[(np.argmax(pred_img))]}')
|
| 13 |
return texto
|
| 14 |
|
| 15 |
-
interface = gr.Interface(classifier,gr.inputs.Image(shape=(
|
| 16 |
description="classifier of images of daisy plants, dandelion, roses, sunflowers, and tulips",
|
| 17 |
title="Flower image classifier")
|
| 18 |
interface.launch()
|
|
|
|
| 12 |
texto = str(f'Predicted label: {classes[(np.argmax(pred_img))]}')
|
| 13 |
return texto
|
| 14 |
|
| 15 |
+
interface = gr.Interface(classifier,gr.inputs.Image(shape=(180,180)),outputs = "text",
|
| 16 |
description="classifier of images of daisy plants, dandelion, roses, sunflowers, and tulips",
|
| 17 |
title="Flower image classifier")
|
| 18 |
interface.launch()
|