Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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("
|
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("
|
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()
|