Spaces:
Runtime error
Runtime error
CesarLeblanc
commited on
Commit
•
1dfab1f
1
Parent(s):
5a58fa4
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,8 @@ def return_habitat_image(habitat_label, habitat_score, confidence):
|
|
28 |
image_url = "https://www.salonlfc.com/wp-content/uploads/2018/01/image-not-found-scaled-1150x647.png"
|
29 |
if habitat_score*100 < confidence:
|
30 |
image_url = "https://www.salonlfc.com/wp-content/uploads/2018/01/image-not-found-scaled-1150x647.png"
|
31 |
-
image_url = "https://www.commissionoceanindien.org/wp-content/uploads/2018/07/plantnet.jpg"
|
|
|
32 |
image = gr.Image(value=image_url)
|
33 |
return image
|
34 |
|
|
|
28 |
image_url = "https://www.salonlfc.com/wp-content/uploads/2018/01/image-not-found-scaled-1150x647.png"
|
29 |
if habitat_score*100 < confidence:
|
30 |
image_url = "https://www.salonlfc.com/wp-content/uploads/2018/01/image-not-found-scaled-1150x647.png"
|
31 |
+
#image_url = "https://www.commissionoceanindien.org/wp-content/uploads/2018/07/plantnet.jpg"
|
32 |
+
image_url = "https://floraveg.eu/habitat/pictures/Q51#image12372"
|
33 |
image = gr.Image(value=image_url)
|
34 |
return image
|
35 |
|