Spaces:
Sleeping
Sleeping
Removed upload for image preview, updated disclaimers
Browse files
app.py
CHANGED
|
@@ -302,7 +302,8 @@ with gr.Blocks() as demo:
|
|
| 302 |
gr.Textbox(
|
| 303 |
"Only use this application on the following classes of nematodes: "
|
| 304 |
+ "Helicotylenchus, Hoplolaimus, Meloidogyne, Mesocriconema, "
|
| 305 |
-
"Pratylenchus, Trichodorus, and Tylenchorhynchus"
|
|
|
|
| 306 |
text_align="center",
|
| 307 |
label="DISCLAIMER",
|
| 308 |
)
|
|
@@ -336,6 +337,7 @@ with gr.Blocks() as demo:
|
|
| 336 |
sources=None,
|
| 337 |
layers=False,
|
| 338 |
brush=False,
|
|
|
|
| 339 |
)
|
| 340 |
crop = gr.Button("Crop")
|
| 341 |
with gr.Column():
|
|
@@ -347,6 +349,8 @@ with gr.Blocks() as demo:
|
|
| 347 |
sources=None,
|
| 348 |
type="filepath",
|
| 349 |
height=250,
|
|
|
|
|
|
|
| 350 |
)
|
| 351 |
classify = gr.Button("Classify")
|
| 352 |
plot = gr.BarPlot()
|
|
@@ -358,7 +362,9 @@ with gr.Blocks() as demo:
|
|
| 358 |
)
|
| 359 |
with gr.Row():
|
| 360 |
json_results = gr.JSON()
|
| 361 |
-
download = gr.DownloadButton(
|
|
|
|
|
|
|
| 362 |
|
| 363 |
download.click(save_results, outputs=download)
|
| 364 |
model_select.change(load_model, inputs=model_select).then(
|
|
|
|
| 302 |
gr.Textbox(
|
| 303 |
"Only use this application on the following classes of nematodes: "
|
| 304 |
+ "Helicotylenchus, Hoplolaimus, Meloidogyne, Mesocriconema, "
|
| 305 |
+
"Pratylenchus, Trichodorus, and Tylenchorhynchus\n\n"
|
| 306 |
+
+ "Only use images containing a single nematode.",
|
| 307 |
text_align="center",
|
| 308 |
label="DISCLAIMER",
|
| 309 |
)
|
|
|
|
| 337 |
sources=None,
|
| 338 |
layers=False,
|
| 339 |
brush=False,
|
| 340 |
+
mirror_webcam=False,
|
| 341 |
)
|
| 342 |
crop = gr.Button("Crop")
|
| 343 |
with gr.Column():
|
|
|
|
| 349 |
sources=None,
|
| 350 |
type="filepath",
|
| 351 |
height=250,
|
| 352 |
+
interactive=False,
|
| 353 |
+
mirror_webcam=False,
|
| 354 |
)
|
| 355 |
classify = gr.Button("Classify")
|
| 356 |
plot = gr.BarPlot()
|
|
|
|
| 362 |
)
|
| 363 |
with gr.Row():
|
| 364 |
json_results = gr.JSON()
|
| 365 |
+
download = gr.DownloadButton(
|
| 366 |
+
"Download Predictions (Click again if download does not start, Gradio bug)"
|
| 367 |
+
)
|
| 368 |
|
| 369 |
download.click(save_results, outputs=download)
|
| 370 |
model_select.change(load_model, inputs=model_select).then(
|