Spaces:
Runtime error
Runtime error
Update app.py
Browse files2 unmodified lines34567877 unmodified lines86878889909192935 unmodified lines991001011021031041051061071082 unmodified linesimport shutilimport osfrom huggingface_hub import snapshot_download# Define the folder name77 unmodified linesinput_video = gr.Video(label="Input Video")prompt = gr.Textbox(label="Prompt")with gr.Row():num_steps = gr.Slider(label="Inference Steps", minimum=1, maximum=30, value=5, step=1)degradation = gr.Slider(label="Noise Degradation", minimum=0, maximum=1, value=0, step=0.1)submit_btn = gr.Button("Submit")gr.Examples(examples = [5 unmodified lineswith gr.Column():output_video = gr.Video(label="Result")gr.HTML("""<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"> for space updates</a>""", elem_id="follow-div")submit_btn.click(fn = process_video,2 unmodified lines34567891077 unmodified lines8889909192939495969798991005 unmodified lines1061071081091101111121131141151161172 unmodified linesimport shutilimport osis_shared_ui = True if "fffiloni/Go-With-The-Flow" in os.environ['SPACE_ID'] else Falsefrom huggingface_hub import snapshot_download# Define the folder name77 unmodified linesinput_video = gr.Video(label="Input Video")prompt = gr.Textbox(label="Prompt")with gr.Row():if is_shared_ui:num_steps = gr.Slider(label="Inference Steps", minimum=1, maximum=30, value=5, step=1, interactive=False)degradation = gr.Slider(label="Noise Degradation", minimum=0, maximum=1, value=0, step=0.1, interactive=False)else:num_steps = gr.Slider(label="Inference Steps", minimum=1, maximum=30, value=5, step=1, interactive=True)degradation = gr.Slider(label="Noise Degradation", minimum=0, maximum=1, value=0, step=0.1, interactive=True)submit_btn = gr.Button("Submit")gr.Examples(examples = [5 unmodified lineswith gr.Column():output_video = gr.Video(label="Result")gr.HTML("""<div id="follow-div"><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><p>for space updates</p>""")submit_btn.click(fn = process_video,
app.py+15-6