Spaces:
Running
Running
kevinwang676
commited on
Commit
•
1a82ed1
1
Parent(s):
65de068
Update app.py
Browse files
app.py
CHANGED
@@ -194,9 +194,9 @@ def youtube_downloader_100s(
|
|
194 |
os.makedirs("output", exist_ok=True)
|
195 |
audio_orig = AudioSegment.from_file(audio_path)
|
196 |
|
197 |
-
if len(audio_orig) >
|
198 |
start_ms = 30000
|
199 |
-
end_ms = start_ms +
|
200 |
|
201 |
# Extract the segment
|
202 |
|
|
|
194 |
os.makedirs("output", exist_ok=True)
|
195 |
audio_orig = AudioSegment.from_file(audio_path)
|
196 |
|
197 |
+
if len(audio_orig) > 200000:
|
198 |
start_ms = 30000
|
199 |
+
end_ms = start_ms + 170000
|
200 |
|
201 |
# Extract the segment
|
202 |
|