Spaces:
Runtime error
Runtime error
Commit ·
f61ff98
1
Parent(s): 364b28c
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import tensorflow as tf
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
-
modelo =tf.keras.models.load_model('
|
| 5 |
#modelo.load_weights("model_0_weights.h5")
|
| 6 |
classes=['daisy','dandelion','roses','sunflowers','tulips']
|
| 7 |
|
|
@@ -12,7 +12,7 @@ def classifier(image):
|
|
| 12 |
return texto
|
| 13 |
|
| 14 |
interface = gr.Interface(classifier,gr.inputs.Image(shape=(1024,1024)),outputs = "text",
|
| 15 |
-
description="classifier of images of daisy plants, dandelion, roses, sunflowers, and tulips
|
| 16 |
title="Flower image classifier")
|
| 17 |
-
interface.launch(
|
| 18 |
|
|
|
|
| 1 |
import tensorflow as tf
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
+
modelo =tf.keras.models.load_model('model_0.h5')
|
| 5 |
#modelo.load_weights("model_0_weights.h5")
|
| 6 |
classes=['daisy','dandelion','roses','sunflowers','tulips']
|
| 7 |
|
|
|
|
| 12 |
return texto
|
| 13 |
|
| 14 |
interface = gr.Interface(classifier,gr.inputs.Image(shape=(1024,1024)),outputs = "text",
|
| 15 |
+
description="classifier of images of daisy plants, dandelion, roses, sunflowers, and tulips",
|
| 16 |
title="Flower image classifier")
|
| 17 |
+
interface.launch()
|
| 18 |
|