ezamorag commited on
Commit
7f02edc
·
1 Parent(s): 452ee12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -167,25 +167,26 @@ def testing_directcounter(input_img):
167
  with gr.Blocks() as demo:
168
  gr.Markdown("Submit an image with insects in a trap")
169
 
170
- with gr.Tab("DetClaSim-based insect counter"):
171
  with gr.Row():
172
  input1 = gr.Image()
173
  output1 =[gr.Image().style(height=500, width=500), gr.Textbox(lines=20)]
174
  button1 = gr.Button("Submit")
175
  button1.click(testing_countingid, input1, output1)
176
 
177
- with gr.Tab("Yolocounter-based insect counter"):
178
  with gr.Row():
179
  #input2 = gr.Image()
180
  output2 =[gr.Image().style(height=500, width=500), gr.Textbox(lines=20)]
181
  #button2 = gr.Button("Submit")
182
  button1.click(testing_yolocounter, input1, output2)
183
 
184
- with gr.Tab("Direct insect counter"):
185
  with gr.Row():
186
  #input3 = gr.Image()
187
  output3 =[gr.Image().style(height=500, width=500), gr.Textbox(lines=20)]
188
  #button3 = gr.Button("Submit")
189
  button1.click(testing_directcounter, input1, output3)
 
190
 
191
  demo.launch()
 
167
  with gr.Blocks() as demo:
168
  gr.Markdown("Submit an image with insects in a trap")
169
 
170
+ with gr.Tab("Species & Common Name Count"):
171
  with gr.Row():
172
  input1 = gr.Image()
173
  output1 =[gr.Image().style(height=500, width=500), gr.Textbox(lines=20)]
174
  button1 = gr.Button("Submit")
175
  button1.click(testing_countingid, input1, output1)
176
 
177
+ with gr.Tab("Simplified Common Name Count"):
178
  with gr.Row():
179
  #input2 = gr.Image()
180
  output2 =[gr.Image().style(height=500, width=500), gr.Textbox(lines=20)]
181
  #button2 = gr.Button("Submit")
182
  button1.click(testing_yolocounter, input1, output2)
183
 
184
+ """ with gr.Tab("Direct insect counter"):
185
  with gr.Row():
186
  #input3 = gr.Image()
187
  output3 =[gr.Image().style(height=500, width=500), gr.Textbox(lines=20)]
188
  #button3 = gr.Button("Submit")
189
  button1.click(testing_directcounter, input1, output3)
190
+ """
191
 
192
  demo.launch()