CesarLeblanc commited on
Commit
d3c40d6
·
1 Parent(s): 1e09a50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -92,6 +92,8 @@ with gr.Blocks() as demo:
92
  text_output_1 = gr.Textbox()
93
  text_output_2 = gr.Image()
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>""")
@@ -101,6 +103,8 @@ with gr.Blocks() as demo:
101
  image_output_1 = gr.Textbox()
102
  image_output_2 = gr.Image()
103
  image_button = gr.Button("Find")
 
 
104
 
105
  text_button.click(classification, inputs=[species, typology, confidence], outputs=[text_output_1, text_output_2])
106
  image_button.click(masking, inputs=[species_2], outputs=[image_output_1, image_output_2])
 
92
  text_output_1 = gr.Textbox()
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>""")
 
103
  image_output_1 = gr.Textbox()
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])