Spaces:
Runtime error
Runtime error
Update app.py
Browse files47 unmodified lines48495051525354555657585960612 unmodified lines64656667686970717273747547 unmodified linessubprocess.run(inference_command, check=True)# Return the path to the output videoreturn output_video, warped_vid_pathexcept subprocess.CalledProcessError as e:raise gr.Error(f"An error occurred: {str(e)}")with gr.Blocks() as demo:with gr.Column():gr.Markdown("# Go-With-The-Flow")with gr.Row():with gr.Column():input_video = gr.Video(label="Input Video")2 unmodified linessubmit_btn = gr.Button("Submit")with gr.Column():output_video = gr.Video(label="Result")warped_vid_path = gr.Video(label="Warped noise")submit_btn.click(fn = process_video,inputs = [input_video, prompt, num_steps],outputs = [output_video, warped_vid_path])demo.queue().launch(show_api=False)47 unmodified lines4849505152535455565758596061626364656667686970717273747576777879802 unmodified lines838485868788899091929347 unmodified linessubprocess.run(inference_command, check=True)# Return the path to the output videoreturn output_videoexcept subprocess.CalledProcessError as e:raise gr.Error(f"An error occurred: {str(e)}")with gr.Blocks() as demo:with gr.Column():gr.Markdown("# Go-With-The-Flow • Cut and Drag")gr.HTML("""<div style="display:flex;column-gap:4px;"><a href="https://github.com/Eyeline-Research/Go-with-the-Flow"><img src='https://img.shields.io/badge/GitHub-Repo-blue'></a><a href="https://arxiv.org/abs/2501.08331"><img src='https://img.shields.io/badge/ArXiv-Paper-red'></a><a href="https://eyeline-research.github.io/Go-with-the-Flow/"><img src='https://img.shields.io/badge/Project-Page-green'></a><a href="https://huggingface.co/spaces/fffiloni/Go-With-The-Flow?duplicate=true"><img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-sm.svg" alt="Duplicate this Space"></a><a href="https://huggingface.co/fffiloni"><img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/follow-me-on-HF-sm-dark.svg" alt="Follow me on HF"></a></div>""")with gr.Row():with gr.Column():input_video = gr.Video(label="Input Video")2 unmodified linessubmit_btn = gr.Button("Submit")with gr.Column():output_video = gr.Video(label="Result")submit_btn.click(fn = process_video,inputs = [input_video, prompt, num_steps],outputs = [output_video])demo.queue().launch(show_api=False)
app.py+22-4