Spaces:
Running
Running
CesarLeblanc
commited on
Commit
•
e517ea4
1
Parent(s):
d3c40d6
Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ with gr.Blocks() as demo:
|
|
93 |
text_output_2 = gr.Image()
|
94 |
text_button = gr.Button("Classify")
|
95 |
gr.Markdown("""<h5 style="text-align: center;">An example of input</h5>""")
|
96 |
-
gr.Examples(["sparganium erectum, calystegia sepium, persicaria amphibia", "EUNIS", 90])
|
97 |
|
98 |
with gr.Tab("Missing species finding"):
|
99 |
gr.Markdown("""<h3 style="text-align: center;">Finding the missing species!</h3>""")
|
@@ -104,7 +104,7 @@ with gr.Blocks() as demo:
|
|
104 |
image_output_2 = gr.Image()
|
105 |
image_button = gr.Button("Find")
|
106 |
gr.Markdown("""<h5 style="text-align: center;">An example of input</h5>""")
|
107 |
-
gr.Examples(["vaccinium myrtillus, dryopteris dilatata, molinia caerulea"])
|
108 |
|
109 |
text_button.click(classification, inputs=[species, typology, confidence], outputs=[text_output_1, text_output_2])
|
110 |
image_button.click(masking, inputs=[species_2], outputs=[image_output_1, image_output_2])
|
|
|
93 |
text_output_2 = gr.Image()
|
94 |
text_button = gr.Button("Classify")
|
95 |
gr.Markdown("""<h5 style="text-align: center;">An example of input</h5>""")
|
96 |
+
gr.Examples([["sparganium erectum, calystegia sepium, persicaria amphibia", "EUNIS", 90]])
|
97 |
|
98 |
with gr.Tab("Missing species finding"):
|
99 |
gr.Markdown("""<h3 style="text-align: center;">Finding the missing species!</h3>""")
|
|
|
104 |
image_output_2 = gr.Image()
|
105 |
image_button = gr.Button("Find")
|
106 |
gr.Markdown("""<h5 style="text-align: center;">An example of input</h5>""")
|
107 |
+
gr.Examples([["vaccinium myrtillus, dryopteris dilatata, molinia caerulea"]])
|
108 |
|
109 |
text_button.click(classification, inputs=[species, typology, confidence], outputs=[text_output_1, text_output_2])
|
110 |
image_button.click(masking, inputs=[species_2], outputs=[image_output_1, image_output_2])
|