Spaces:
Runtime error
Runtime error
Commit
·
8cecdef
1
Parent(s):
2354580
Update app.py
Browse files
app.py
CHANGED
@@ -17,9 +17,10 @@ def classify(img):
|
|
17 |
confidences = {class_names[i]: float(score[i]) for i in range(5)}
|
18 |
return confidences
|
19 |
|
20 |
-
|
21 |
|
22 |
gr.Interface(fn=classify,
|
|
|
23 |
inputs=gr.Image(shape=(180, 180)),
|
24 |
outputs=gr.Label(num_top_classes=5),examples=["Dandelion.jpg", "rose.jpeg","sunflower.jpg", "tulips.jpeg"]).launch(debug=True)
|
25 |
|
|
|
17 |
confidences = {class_names[i]: float(score[i]) for i in range(5)}
|
18 |
return confidences
|
19 |
|
20 |
+
|
21 |
|
22 |
gr.Interface(fn=classify,
|
23 |
+
title=gr.HTML("<h1>Flower Classification App [Sunflower, Rose, Daisy, Dandelion, Tulips]</h1>"),
|
24 |
inputs=gr.Image(shape=(180, 180)),
|
25 |
outputs=gr.Label(num_top_classes=5),examples=["Dandelion.jpg", "rose.jpeg","sunflower.jpg", "tulips.jpeg"]).launch(debug=True)
|
26 |
|