Spaces:
Sleeping
Sleeping
Update app.py
Browse files856 unmodified lines8578588598608618628635 unmodified lines86987087187287387421 unmodified lines89689789889990090131 unmodified lines933934935936937938939856 unmodified linesbackground_highpass_freq=120, background_lowpass_freq=11000,background_reverb_room_size=0.5, background_reverb_damping=0.5, background_reverb_wet_level=0.25,background_compressor_threshold_db=-20, background_compressor_ratio=2.5, background_compressor_attack_ms=15, background_compressor_release_ms=80,background_gain_db=3):if not media_file:raise ValueError("The audio path is missing.")5 unmodified linesoutputs = []start_time = time.time()if stem == "vocal":21 unmodified linesoutputs.append(vocal_audio)except Exception as error:logger.error(str(error))if stem == "background":31 unmodified linesdef audio_downloader(url_media,):url_media = url_media.strip()856 unmodified lines8578588598608618628638645 unmodified lines87087187287387487587687787887988088121 unmodified lines90390490590690790890931 unmodified lines941942943944945946947856 unmodified linesbackground_highpass_freq=120, background_lowpass_freq=11000,background_reverb_room_size=0.5, background_reverb_damping=0.5, background_reverb_wet_level=0.25,background_compressor_threshold_db=-20, background_compressor_ratio=2.5, background_compressor_attack_ms=15, background_compressor_release_ms=80,background_gain_db=3,):if not media_file:raise ValueError("The audio path is missing.")5 unmodified linesoutputs = []try:duration_base_ = librosa.get_duration(filename=media_file)print("Duration audio:", duration_base_)except Exception as e:print(e)start_time = time.time()if stem == "vocal":21 unmodified linesoutputs.append(vocal_audio)except Exception as error:gr.Info(str(error))logger.error(str(error))if stem == "background":31 unmodified linesdef audio_downloader(url_media,):url_media = url_media.strip()
app.py+10-2