Spaces:
Running on Zero
Running on Zero
Allow 60 s of input
Browse filesThe edit is generated in one pass the GPU holds whole, so the input stays limited, now to 60 s, the length measured to fit. The reservation follows the length.
130 unmodified lines13113213313413513613713864 unmodified lines203204205206207208209130 unmodified linesreturn edit(input_audio_path, instruction)# The edit is generated as long as the input, so the cost grows with its lengthMAX_INPUT_SECONDS = 30def gpu_seconds(input_audio_path: str, instruction: str) -> float:64 unmodified lineswith gr.Blocks() as demo:input_components = [gr.Audio(type="filepath", label="Input Audio").harp_required(True).set_info(("The music to edit, up to 30 seconds. The instruction decides what happens ""to it, so the arrangement should contain whatever you are asking to change.")),gr.Textbox(130 unmodified lines13113213313413513613713813964 unmodified lines204205206207208209210130 unmodified linesreturn edit(input_audio_path, instruction)# The edit is generated as long as the input, in one pass the GPU holds whole, so the input is# limited to the longest measured to fitMAX_INPUT_SECONDS = 60def gpu_seconds(input_audio_path: str, instruction: str) -> float:64 unmodified lineswith gr.Blocks() as demo:input_components = [gr.Audio(type="filepath", label="Input Audio").harp_required(True).set_info(("The music to edit, up to 60 seconds. The instruction decides what happens ""to it, so the arrangement should contain whatever you are asking to change.")),gr.Textbox(
app.py+4-3