Antonio commited on
Commit
1409877
·
1 Parent(s): b75c3f7

Removed video_file.name from separate_video_audio

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -199,7 +199,7 @@ def predict(video_file, video_model_name, audio_model_name, framework_name):
199
 
200
  delete_directory_path = "./temp/"
201
 
202
- video_path, audio_path = separate_video_audio(video_file.name)
203
 
204
  video_prediction = predict_video(video_path, video_model, image_processor)
205
 
@@ -227,8 +227,7 @@ inputs = [
227
  ]
228
 
229
  outputs = [
230
- gr.JSON(label="Predictions"),
231
- gr.Video(label="Uploaded Video")
232
  ]
233
 
234
  iface = gr.Interface(
 
199
 
200
  delete_directory_path = "./temp/"
201
 
202
+ video_path, audio_path = separate_video_audio(video_file)
203
 
204
  video_prediction = predict_video(video_path, video_model, image_processor)
205
 
 
227
  ]
228
 
229
  outputs = [
230
+ gr.JSON(label="Predictions")
 
231
  ]
232
 
233
  iface = gr.Interface(