Update app.py
Browse files
app.py
CHANGED
@@ -35,9 +35,7 @@ def clip(yt_url, start_timestamp, duration):
|
|
35 |
clip_path = os.path.join(tmpdir, f"{uuid4()}.mp3")
|
36 |
print(f'ffmpeg -ss {start_timestamp} -t {duration} -i "{video_output_path}" "{clip_path}"')
|
37 |
subprocess.run(f'ffmpeg -ss {start_timestamp} -t {duration} -i "{video_output_path}" "{clip_path}"', shell=True)
|
38 |
-
|
39 |
-
sleep(3)
|
40 |
-
return clip_path
|
41 |
|
42 |
|
43 |
url_link = gr.Textbox(label="YouTube URL")
|
|
|
35 |
clip_path = os.path.join(tmpdir, f"{uuid4()}.mp3")
|
36 |
print(f'ffmpeg -ss {start_timestamp} -t {duration} -i "{video_output_path}" "{clip_path}"')
|
37 |
subprocess.run(f'ffmpeg -ss {start_timestamp} -t {duration} -i "{video_output_path}" "{clip_path}"', shell=True)
|
38 |
+
return clip_path
|
|
|
|
|
39 |
|
40 |
|
41 |
url_link = gr.Textbox(label="YouTube URL")
|