Spaces:
vztu
/
Runtime error

nanushio commited on
Commit
289aa5c
·
1 Parent(s): fc83168

- [MINOR] [SOURCE] [UPDATE] 1. update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -93,9 +93,9 @@ def inference_one_video(input_video):
93
  pred_score = fuse_results(results)
94
  return pred_score
95
 
96
- # Define the input and output types for Gradio
97
- video_input = gr.inputs.Video(type="numpy", label="Input Video")
98
- output_label = gr.outputs.JSON(label="Scores")
99
 
100
  # Create the Gradio interface
101
  gradio_app = gr.Interface(fn=inference_one_video, inputs=video_input, outputs=output_label)
 
93
  pred_score = fuse_results(results)
94
  return pred_score
95
 
96
+ # Define the input and output types for Gradio using the new API
97
+ video_input = gr.Video(type="numpy", label="Input Video")
98
+ output_label = gr.JSON(label="Scores")
99
 
100
  # Create the Gradio interface
101
  gradio_app = gr.Interface(fn=inference_one_video, inputs=video_input, outputs=output_label)