Jeffgold commited on
Commit
879e1ed
·
1 Parent(s): 62da4e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,8 +29,8 @@ def transcode_video(input_video_file, output_file, output_format, output_fps):
29
  # Return the path to the transcoded file.
30
  return output_file
31
 
32
- def name_file(file_path):
33
- return os.path.basename(file_path.name)
34
 
35
  input_video_file = File(accept=".mp4, .mov, .avi, .flv, .wmv, .mpeg, .mpg, .ogg, .webm")
36
 
 
29
  # Return the path to the transcoded file.
30
  return output_file
31
 
32
+ def name_file(file):
33
+ return file.name
34
 
35
  input_video_file = File(accept=".mp4, .mov, .avi, .flv, .wmv, .mpeg, .mpg, .ogg, .webm")
36