Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,6 @@ def convert_to_mp3(input_path, output_path):
|
|
67 |
|
68 |
def load_youtube_audio(yt_link):
|
69 |
|
70 |
-
gr.Info("Loading your YouTube link ... ")
|
71 |
with tempfile.TemporaryDirectory() as tmpdirname:
|
72 |
filepath = os.path.join(tmpdirname, "video.mp4")
|
73 |
download_yt_audio(yt_link, filepath)
|
@@ -75,9 +74,7 @@ def load_youtube_audio(yt_link):
|
|
75 |
mp3_output_path = "video_sound.mp3"
|
76 |
convert_to_mp3(filepath, mp3_output_path)
|
77 |
print("Conversion complete. MP3 saved at:", mp3_output_path)
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
return mp3_output_path
|
82 |
|
83 |
def split_process(audio, chosen_out_track):
|
|
|
67 |
|
68 |
def load_youtube_audio(yt_link):
|
69 |
|
|
|
70 |
with tempfile.TemporaryDirectory() as tmpdirname:
|
71 |
filepath = os.path.join(tmpdirname, "video.mp4")
|
72 |
download_yt_audio(yt_link, filepath)
|
|
|
74 |
mp3_output_path = "video_sound.mp3"
|
75 |
convert_to_mp3(filepath, mp3_output_path)
|
76 |
print("Conversion complete. MP3 saved at:", mp3_output_path)
|
77 |
+
|
|
|
|
|
78 |
return mp3_output_path
|
79 |
|
80 |
def split_process(audio, chosen_out_track):
|