PeterYoung777 commited on
Commit
63b55ce
1 Parent(s): a587d3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -44,8 +44,9 @@ def predict(img):
44
 
45
  import gradio as gr
46
  examples = [['d.jpg'], ['rose.jpg'], ['rose2.jpg'], ['images.jpg']]
47
- gr.Interface(fn=predict,
48
  inputs=gr.inputs.Image(type="pil"),
49
  outputs=gr.outputs.Label(num_top_classes=5),
50
- title = 'Five kinds of flower Detection',
51
- description = 'This program can be used to detect five types of flowers: "daisy", "dandelion", "roses", "sunflowers", "tulips", and the program will give the classification results along with a confidence score.').launch()
 
 
44
 
45
  import gradio as gr
46
  examples = [['d.jpg'], ['rose.jpg'], ['rose2.jpg'], ['images.jpg']]
47
+ inter = gr.Interface(fn=predict,
48
  inputs=gr.inputs.Image(type="pil"),
49
  outputs=gr.outputs.Label(num_top_classes=5),
50
+ title = 'Five types of flower Detection',
51
+ This program can be used to detect five types of flowers: "daisy", "dandelion", "roses", "sunflowers", "tulips", and the program will give the classification results along with a confidence score.', examples=examples, theme = 'huggingface')
52
+ inter.launch(inline=False,debug=True)