meetsuki commited on
Commit
c756e3d
1 Parent(s): 55a0e11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,12 +1,13 @@
1
  import gradio as gr
2
 
3
  def classify(img):
4
- pred, probability = predict_one_image(img, model_VGG19)
 
5
 
6
 
7
  demo = gr.Interface(fn=classify,
8
  inputs = gr.inputs.Image(shape=(224,224)),
9
- outputs =gr.outputs.Label(num_classes=5),
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",