Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def classify(img):
|
4 |
-
|
|
|
5 |
|
6 |
|
7 |
demo = gr.Interface(fn=classify,
|
8 |
inputs = gr.inputs.Image(shape=(224,224)),
|
9 |
-
outputs =gr.outputs.
|
10 |
title = "Flower Recognition",
|
11 |
examples =['tulip.jpg','rose.jpg','daisy.jpg','dandelion.jpg','sunflower.jpg',],
|
12 |
description = "Transfer Learning Application",
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def classify(img):
|
4 |
+
pred, probability = predict_one_image(img, model_VGG19)
|
5 |
+
return class_names[pred]
|
6 |
|
7 |
|
8 |
demo = gr.Interface(fn=classify,
|
9 |
inputs = gr.inputs.Image(shape=(224,224)),
|
10 |
+
outputs =gr.outputs.Textbox(),
|
11 |
title = "Flower Recognition",
|
12 |
examples =['tulip.jpg','rose.jpg','daisy.jpg','dandelion.jpg','sunflower.jpg',],
|
13 |
description = "Transfer Learning Application",
|