CesarLeblanc commited on
Commit
8e84211
1 Parent(s): 721eaca
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -137,8 +137,8 @@ with gr.Blocks() as demo:
137
  species_classification = gr.Textbox(lines=2, label="Species", placeholder="Enter a list of comma-separated binomial names here.")
138
  k_classification = gr.Slider(1, 5, value=1, step=1, label="Top-k", info="Choose the number of top habitats to display.")
139
  with gr.Column():
140
- text_classification = gr.Textbox(value="Prediction")
141
- image_classification = gr.Image(value="https://www.commissionoceanindien.org/wp-content/uploads/2018/07/plantnet.jpg")
142
  button_classification = gr.Button("Classify")
143
  gr.Markdown("""<h5 style="text-align: center;">An example of input</h5>""")
144
  gr.Examples([["sparganium erectum, calystegia sepium, persicaria amphibia", 1]], [species_classification, k_classification], [text_classification, image_classification], classification, True)
@@ -150,8 +150,8 @@ with gr.Blocks() as demo:
150
  species_masking = gr.Textbox(lines=2, label="Species", placeholder="Enter a list of comma-separated binomial names here.")
151
  k_masking = gr.Slider(1, 5, value=1, step=1, label="Top-k", info="Choose the number of top missing species to find.")
152
  with gr.Column():
153
- text_masking = gr.Textbox(value="Prediction")
154
- image_masking = gr.Image(value="https://www.commissionoceanindien.org/wp-content/uploads/2018/07/plantnet.jpg")
155
  button_masking = gr.Button("Find")
156
  gr.Markdown("""<h5 style="text-align: center;">An example of input</h5>""")
157
  gr.Examples([["vaccinium myrtillus, dryopteris dilatata, molinia caerulea", 1]], [species_masking, k_masking], [text_masking, image_masking], masking, True)
 
137
  species_classification = gr.Textbox(lines=2, label="Species", placeholder="Enter a list of comma-separated binomial names here.")
138
  k_classification = gr.Slider(1, 5, value=1, step=1, label="Top-k", info="Choose the number of top habitats to display.")
139
  with gr.Column():
140
+ text_classification = gr.Textbox(label="Prediction")
141
+ image_classification = gr.Image()
142
  button_classification = gr.Button("Classify")
143
  gr.Markdown("""<h5 style="text-align: center;">An example of input</h5>""")
144
  gr.Examples([["sparganium erectum, calystegia sepium, persicaria amphibia", 1]], [species_classification, k_classification], [text_classification, image_classification], classification, True)
 
150
  species_masking = gr.Textbox(lines=2, label="Species", placeholder="Enter a list of comma-separated binomial names here.")
151
  k_masking = gr.Slider(1, 5, value=1, step=1, label="Top-k", info="Choose the number of top missing species to find.")
152
  with gr.Column():
153
+ text_masking = gr.Textbox(label="Prediction")
154
+ image_masking = gr.Image()
155
  button_masking = gr.Button("Find")
156
  gr.Markdown("""<h5 style="text-align: center;">An example of input</h5>""")
157
  gr.Examples([["vaccinium myrtillus, dryopteris dilatata, molinia caerulea", 1]], [species_masking, k_masking], [text_masking, image_masking], masking, True)