Jeffgold commited on
Commit
5d93f13
·
1 Parent(s): 1819951

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def convert_video(video_file: File, quality, aspect_ratio, video_url):
47
  output_path = f"{temp_dir}/{video_file.name}"
48
 
49
  # Get the file extension
50
- file_extension = video_file.suffix
51
 
52
  # Remove the file extension
53
  output_path = output_path[:-len(file_extension)]
 
47
  output_path = f"{temp_dir}/{video_file.name}"
48
 
49
  # Get the file extension
50
+ file_extension = video_file.name.split(".")[-1]
51
 
52
  # Remove the file extension
53
  output_path = output_path[:-len(file_extension)]