Spaces:
Runtime error
Runtime error
CesarLeblanc
commited on
Commit
•
1e09a50
1
Parent(s):
64006b4
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def return_habitat_image(habitat_label, habitat_score, confidence):
|
|
36 |
image_url = "https://www.salonlfc.com/wp-content/uploads/2018/01/image-not-found-scaled-1150x647.png"
|
37 |
if habitat_score*100 < confidence:
|
38 |
image_url = "https://www.salonlfc.com/wp-content/uploads/2018/01/image-not-found-scaled-1150x647.png"
|
39 |
-
image_url = "https://
|
40 |
image = gr.Image(value=image_url)
|
41 |
return image
|
42 |
|
@@ -53,7 +53,7 @@ def return_species_image(species):
|
|
53 |
image_url = "https://www.salonlfc.com/wp-content/uploads/2018/01/image-not-found-scaled-1150x647.png"
|
54 |
else:
|
55 |
image_url = "https://www.salonlfc.com/wp-content/uploads/2018/01/image-not-found-scaled-1150x647.png"
|
56 |
-
image_url = "https://
|
57 |
image = gr.Image(value=image_url)
|
58 |
return image
|
59 |
|
@@ -79,9 +79,10 @@ def masking(text):
|
|
79 |
return text, image
|
80 |
|
81 |
with gr.Blocks() as demo:
|
82 |
-
gr.Markdown("""
|
83 |
|
84 |
with gr.Tab("Vegetation plot classification"):
|
|
|
85 |
with gr.Row():
|
86 |
with gr.Column():
|
87 |
species = gr.Textbox(lines=2, label="Species", placeholder="Enter a list of comma-separated binomial names here.")
|
@@ -93,6 +94,7 @@ with gr.Blocks() as demo:
|
|
93 |
text_button = gr.Button("Classify")
|
94 |
|
95 |
with gr.Tab("Missing species finding"):
|
|
|
96 |
with gr.Row():
|
97 |
species_2 = gr.Textbox(lines=2, label="Species", placeholder="Enter a list of comma-separated binomial names here.")
|
98 |
with gr.Column():
|
|
|
36 |
image_url = "https://www.salonlfc.com/wp-content/uploads/2018/01/image-not-found-scaled-1150x647.png"
|
37 |
if habitat_score*100 < confidence:
|
38 |
image_url = "https://www.salonlfc.com/wp-content/uploads/2018/01/image-not-found-scaled-1150x647.png"
|
39 |
+
image_url = "https://www.commissionoceanindien.org/wp-content/uploads/2018/07/plantnet.jpg"
|
40 |
image = gr.Image(value=image_url)
|
41 |
return image
|
42 |
|
|
|
53 |
image_url = "https://www.salonlfc.com/wp-content/uploads/2018/01/image-not-found-scaled-1150x647.png"
|
54 |
else:
|
55 |
image_url = "https://www.salonlfc.com/wp-content/uploads/2018/01/image-not-found-scaled-1150x647.png"
|
56 |
+
image_url = "https://www.commissionoceanindien.org/wp-content/uploads/2018/07/plantnet.jpg"
|
57 |
image = gr.Image(value=image_url)
|
58 |
return image
|
59 |
|
|
|
79 |
return text, image
|
80 |
|
81 |
with gr.Blocks() as demo:
|
82 |
+
gr.Markdown("""<h1 style="text-align: center;">Pl@ntBERT</h1>""")
|
83 |
|
84 |
with gr.Tab("Vegetation plot classification"):
|
85 |
+
gr.Markdown("""<h3 style="text-align: center;">Classification of vegetation plots!</h3>""")
|
86 |
with gr.Row():
|
87 |
with gr.Column():
|
88 |
species = gr.Textbox(lines=2, label="Species", placeholder="Enter a list of comma-separated binomial names here.")
|
|
|
94 |
text_button = gr.Button("Classify")
|
95 |
|
96 |
with gr.Tab("Missing species finding"):
|
97 |
+
gr.Markdown("""<h3 style="text-align: center;">Finding the missing species!</h3>""")
|
98 |
with gr.Row():
|
99 |
species_2 = gr.Textbox(lines=2, label="Species", placeholder="Enter a list of comma-separated binomial names here.")
|
100 |
with gr.Column():
|