Spaces:
Paused
Paused
Update app.py
Browse files
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.
|
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)]
|