Spaces:
Runtime error
Runtime error
try to solve some of the GPU Task Aborted for stable aud
Browse files108 unmodified lines109110111112113114115116117118108 unmodified linesduration = min(utils.get_duration(input_audio), utils.MAX_DURATION)time_for_maxlength = factor * forwards * 0.15 # 0.25 is the time per forward passprint('expected time:', time_for_maxlength / utils.MAX_DURATION * duration)spare_time = 5return max(10, time_for_maxlength / utils.MAX_DURATION * duration + spare_time)def verify_model_params(model_id: str, input_audio, src_prompt: str, tar_prompt: str, cfg_scale_src: float,108 unmodified lines109110111112113114115116117118119120121108 unmodified linesduration = min(utils.get_duration(input_audio), utils.MAX_DURATION)time_for_maxlength = factor * forwards * 0.15 # 0.25 is the time per forward passif model_id != STABLEAUD:time_for_maxlength = time_for_maxlength / utils.MAX_DURATION * durationprint('expected time:', time_for_maxlength)spare_time = 5return max(10, time_for_maxlength + spare_time)def verify_model_params(model_id: str, input_audio, src_prompt: str, tar_prompt: str, cfg_scale_src: float,
app.py+6-3