Problems with duplication
for now, I had the AI analyze the current code and assess the situation in Space:
The reason changing run_diffueraser.py did not affect the web demo is that the Hugging Face Space runs gradio_app.py, not run_diffueraser.py.
run_diffueraser.py is mainly for command-line use. In the Gradio web interface, the actual inference function is inside gradio_app.py.
The 5-second limit comes from this function in gradio_app.py:
def trim_video(input_path, output_path, max_duration=5):
and the app calls it without passing another value:
trim_video(input_video, trimmed_video_path)
trim_video(input_mask, trimmed_mask_path)
So it always uses 5 seconds.
To make 15-second videos, you need to change gradio_app.py, not only run_diffueraser.py. A safer solution is to add a Gradio slider for the maximum duration, so you do not need to edit the code every time.
Also, if the Space is stuck on “Starting on L40S”, check the logs first. This app downloads and loads large models before the Gradio interface appears, so the first startup can take a long time. If the logs show downloads or model loading, wait. If the logs show a Python error, copy that full error message and fix that specific error.
Discussion in the ATmosphere