wooj0216 commited on
Commit
1caec79
·
1 Parent(s): be70a4d

FIX: change_input

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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():