Spaces:
Runtime error
Runtime error
dur no
Browse files
app.py
CHANGED
@@ -36,9 +36,6 @@ def check_extension(video):
|
|
36 |
|
37 |
clip = moviepy.VideoFileClip(video)
|
38 |
|
39 |
-
if clip.duration > 10:
|
40 |
-
raise gr.Error("Please provide or record a video shorter than 10 seconds...")
|
41 |
-
|
42 |
split_tup = os.path.splitext(video)
|
43 |
|
44 |
# extract the file name and extension
|
|
|
36 |
|
37 |
clip = moviepy.VideoFileClip(video)
|
38 |
|
|
|
|
|
|
|
39 |
split_tup = os.path.splitext(video)
|
40 |
|
41 |
# extract the file name and extension
|