Spaces:
Sleeping
Sleeping
concurrent execution update
Browse files
app.py
CHANGED
|
@@ -143,19 +143,19 @@ with gr.Blocks(css=custom_css) as interface:
|
|
| 143 |
thread1.join()
|
| 144 |
thread2.join()
|
| 145 |
|
| 146 |
-
#run_button.click(
|
| 147 |
-
# fn=run_both,
|
| 148 |
-
# inputs=[sample_selection, upload_image, selected_models],
|
| 149 |
-
# outputs=[],
|
| 150 |
-
#)
|
| 151 |
run_button.click(
|
| 152 |
-
fn=
|
| 153 |
-
process_image(sample_choice, uploaded_image, yolo_versions), # Process image
|
| 154 |
-
view_model(yolo_versions) # Display model visualization
|
| 155 |
-
],
|
| 156 |
inputs=[sample_selection, upload_image, selected_models],
|
| 157 |
-
outputs=[result_gallery,
|
| 158 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
|
| 160 |
# Laun
|
| 161 |
|
|
|
|
| 143 |
thread1.join()
|
| 144 |
thread2.join()
|
| 145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
run_button.click(
|
| 147 |
+
fn=run_both,
|
|
|
|
|
|
|
|
|
|
| 148 |
inputs=[sample_selection, upload_image, selected_models],
|
| 149 |
+
outputs=[result_gallery,netron_html],
|
| 150 |
)
|
| 151 |
+
# run_button.click(
|
| 152 |
+
# fn=lambda sample_choice, uploaded_image, yolo_versions: [
|
| 153 |
+
# process_image(sample_choice, uploaded_image, yolo_versions), # Process image
|
| 154 |
+
# view_model(yolo_versions) # Display model visualization
|
| 155 |
+
# ],
|
| 156 |
+
# inputs=[sample_selection, upload_image, selected_models],
|
| 157 |
+
# outputs=[result_gallery, netron_display],
|
| 158 |
+
# )
|
| 159 |
|
| 160 |
# Laun
|
| 161 |
|