23A475R commited on
Commit
370ea27
1 Parent(s): 52fdf35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -130,8 +130,8 @@ def predict_video_frame(frame):
130
 
131
  demo = gr.Interface(
132
  fn = predict_emotion,
133
- inputs = [gr.inputs.Image(type="numpy"), gr.inputs.Video()], # Corrected input components
134
- outputs = gr.outputs.Image(),
135
  examples = [
136
  [os.path.join(os.path.dirname(__file__), "images/chandler.jpeg")],
137
  [os.path.join(os.path.dirname(__file__), "images/janice.jpeg")],
 
130
 
131
  demo = gr.Interface(
132
  fn = predict_emotion,
133
+ inputs = [gr.Components.File()], # Corrected input components
134
+ outputs = gr.Components.File(),
135
  examples = [
136
  [os.path.join(os.path.dirname(__file__), "images/chandler.jpeg")],
137
  [os.path.join(os.path.dirname(__file__), "images/janice.jpeg")],