Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -309,7 +309,7 @@ with gr.Blocks() as fungus_classification:
|
|
| 309 |
image_output = gr.Gallery(label = 'Images of Molds')
|
| 310 |
predict_outputs = gr.Textbox(label = 'Prediction Result')
|
| 311 |
upload_button = gr.UploadButton("Click to Upload Files", file_types=["image", "video"], file_count="multiple")
|
| 312 |
-
upload_button.upload(upload_file,
|
| 313 |
upload_button.upload(classify_images, [upload_button,threshold], predict_outputs)
|
| 314 |
fungus_classification.launch(share=True, debug=True)
|
| 315 |
-
# fungus_classification.launch(share=True, debug=True, enable_queue=True)
|
|
|
|
| 309 |
image_output = gr.Gallery(label = 'Images of Molds')
|
| 310 |
predict_outputs = gr.Textbox(label = 'Prediction Result')
|
| 311 |
upload_button = gr.UploadButton("Click to Upload Files", file_types=["image", "video"], file_count="multiple")
|
| 312 |
+
upload_button.upload(upload_file, upload_button, image_output)
|
| 313 |
upload_button.upload(classify_images, [upload_button,threshold], predict_outputs)
|
| 314 |
fungus_classification.launch(share=True, debug=True)
|
| 315 |
+
# fungus_classification.launch(share=True, debug=True, enable_queue=True)
|