Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ def update_visibility(input_type):
|
|
107 |
if input_type == "Image":
|
108 |
return gr.update(visible=True), gr.update(visible=False), gr.update(visible=True), gr.update(visible=False)
|
109 |
else:
|
110 |
-
return gr.update(visible=False), gr.update(visible=True), gr.update(visible=False), gr.update(visible=
|
111 |
|
112 |
def yolo_inference_for_examples(image, model_id, conf_threshold, iou_threshold, max_detection):
|
113 |
annotated_image, _ = yolo_inference(
|
|
|
107 |
if input_type == "Image":
|
108 |
return gr.update(visible=True), gr.update(visible=False), gr.update(visible=True), gr.update(visible=False)
|
109 |
else:
|
110 |
+
return gr.update(visible=False), gr.update(visible=True), gr.update(visible=False), gr.update(visible=True)
|
111 |
|
112 |
def yolo_inference_for_examples(image, model_id, conf_threshold, iou_threshold, max_detection):
|
113 |
annotated_image, _ = yolo_inference(
|