Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -433,7 +433,6 @@ def handle(mode, media_upload, url, run_det, det_model, det_confidence, run_seg,
|
|
433 |
log_runtime(start_time)
|
434 |
return None, format_error("Invalid input. Please check your upload or URL."), None
|
435 |
|
436 |
-
# Gradio Interface
|
437 |
# Gradio Interface
|
438 |
with gr.Blocks() as demo:
|
439 |
gr.Markdown("## Unified Visual Intelligence System (UVIS)")
|
@@ -470,7 +469,7 @@ with gr.Blocks() as demo:
|
|
470 |
seg_model = gr.Dropdown(choices=list(SEGMENTATION_MODEL_MAP), label="Segmentation Model", visible=False)
|
471 |
depth_model = gr.Dropdown(choices=list(DEPTH_MODEL_MAP), label="Depth Model", visible=False)
|
472 |
|
473 |
-
|
474 |
|
475 |
# Attach Visibility Logic
|
476 |
run_det.change(toggle_visibility, inputs=[run_det], outputs=[det_model])
|
|
|
433 |
log_runtime(start_time)
|
434 |
return None, format_error("Invalid input. Please check your upload or URL."), None
|
435 |
|
|
|
436 |
# Gradio Interface
|
437 |
with gr.Blocks() as demo:
|
438 |
gr.Markdown("## Unified Visual Intelligence System (UVIS)")
|
|
|
469 |
seg_model = gr.Dropdown(choices=list(SEGMENTATION_MODEL_MAP), label="Segmentation Model", visible=False)
|
470 |
depth_model = gr.Dropdown(choices=list(DEPTH_MODEL_MAP), label="Depth Model", visible=False)
|
471 |
|
472 |
+
det_confidence = gr.Slider(0.1, 1.0, 0.5, label="Detection Confidence Threshold", visible=False)
|
473 |
|
474 |
# Attach Visibility Logic
|
475 |
run_det.change(toggle_visibility, inputs=[run_det], outputs=[det_model])
|