Spaces:
Sleeping
Sleeping
Update app_colab.py
Browse files- app_colab.py +3 -3
app_colab.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 =
|
| 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) > 180000:
|
| 198 |
+
start_ms = 30000
|
| 199 |
+
end_ms = start_ms + 150000
|
| 200 |
|
| 201 |
# Extract the segment
|
| 202 |
|