Spaces:
Runtime error
Runtime error
CesarLeblanc
commited on
Commit
•
6b0aebb
1
Parent(s):
0131faa
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]], [species, typology, confidence])
|
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"]], [species_2])
|
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]], [species, typology, confidence], [text_output_1, text_output_2], classification, True)
|
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"]], [species_2], [image_output_1, image_output_2], masking, True)
|
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])
|