fixed quick bug
Browse files
app.py
CHANGED
@@ -143,8 +143,6 @@ def get_average_pitch(audio_file):
|
|
143 |
def all_in_one_inator(ytvideo, download_yt_video_as, min_duration, max_duration, name_for_outputted_split_files, progress=gr.Progress()):
|
144 |
if download_as == "mp3":
|
145 |
gr.Warning("MP3 is experimental, especially with this, so caution is advised.")
|
146 |
-
if not os.path.exists("output.mp3") and not os.path.exists("output.wav"):
|
147 |
-
raise gr.Error("Neither output.mp3 or output.wav exist! Did the video download correctly?")
|
148 |
if min_duration == max_duration:
|
149 |
raise gr.Error(f"Cannot split mindur={min_duration} and maxdur={max_duration}, min and max are the same number.")
|
150 |
elif min_duration > max_duration:
|
|
|
143 |
def all_in_one_inator(ytvideo, download_yt_video_as, min_duration, max_duration, name_for_outputted_split_files, progress=gr.Progress()):
|
144 |
if download_as == "mp3":
|
145 |
gr.Warning("MP3 is experimental, especially with this, so caution is advised.")
|
|
|
|
|
146 |
if min_duration == max_duration:
|
147 |
raise gr.Error(f"Cannot split mindur={min_duration} and maxdur={max_duration}, min and max are the same number.")
|
148 |
elif min_duration > max_duration:
|