Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def convert_video(video_file, quality, aspect_ratio, video_url):
|
|
100 |
|
101 |
def convert_video(video_file, quality, aspect_ratio, video_url):
|
102 |
# Ensure either a file or a URL is provided
|
103 |
-
|
104 |
raise ValueError("Please provide either a video file or a video URL.")
|
105 |
|
106 |
input_path = get_input_path(video_file, video_url)
|
|
|
100 |
|
101 |
def convert_video(video_file, quality, aspect_ratio, video_url):
|
102 |
# Ensure either a file or a URL is provided
|
103 |
+
if not video_file and not video_url:
|
104 |
raise ValueError("Please provide either a video file or a video URL.")
|
105 |
|
106 |
input_path = get_input_path(video_file, video_url)
|