Spaces:
Sleeping
Sleeping
FIX: change_input
Browse files
app.py
CHANGED
@@ -60,11 +60,11 @@ def process_video(video, detection_type):
|
|
60 |
|
61 |
def change_input(input_type):
|
62 |
if input_type == "Image":
|
63 |
-
return gr.update(visible=True), gr.update(visible=False)
|
64 |
elif input_type == "Video":
|
65 |
-
return gr.update(visible=False), gr.update(visible=True)
|
66 |
else:
|
67 |
-
return None
|
68 |
|
69 |
def determine_model_type(image_path):
|
70 |
if "facial" in image_path.lower():
|
|
|
60 |
|
61 |
def change_input(input_type):
|
62 |
if input_type == "Image":
|
63 |
+
return gr.update(value=None, visible=True), gr.update(value=None, visible=False)
|
64 |
elif input_type == "Video":
|
65 |
+
return gr.update(value=None, visible=False), gr.update(value=None, visible=True)
|
66 |
else:
|
67 |
+
return gr.update(value=None, visible=False), gr.update(value=None, visible=False)
|
68 |
|
69 |
def determine_model_type(image_path):
|
70 |
if "facial" in image_path.lower():
|