Commit
•
63b55ce
1
Parent(s):
a587d3f
Update app.py
Browse files
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
|
51 |
-
|
|
|
|
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)
|