MohamedMotaz commited on
Commit
88bde5d
1 Parent(s): 55d4490

Deployment

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,9 +2,10 @@ import gradio as gr
2
  from face_emotion_pipeline import process_video, process_image
3
 
4
  def process_file(file, is_video):
 
5
  input_path = file.name
6
  output_path = "output." + ("mp4" if is_video else "png")
7
- if is_video:
8
  process_video(input_path, output_path)
9
  else:
10
  process_image(input_path, output_path)
 
2
  from face_emotion_pipeline import process_video, process_image
3
 
4
  def process_file(file, is_video):
5
+ print("==========>", is_video)
6
  input_path = file.name
7
  output_path = "output." + ("mp4" if is_video else "png")
8
+ if is_video == True:
9
  process_video(input_path, output_path)
10
  else:
11
  process_image(input_path, output_path)