Spaces:
Running
Running
Update gradio_app.py
Browse files- gradio_app.py +29 -2
gradio_app.py
CHANGED
@@ -293,12 +293,39 @@ def infer(n_prompt, relight_prompt, video_path, bg_source,
|
|
293 |
|
294 |
return results_path
|
295 |
|
296 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
with gr.Column(elem_id="col-container"):
|
298 |
gr.Markdown("# Light-A-Video")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
299 |
with gr.Row():
|
300 |
with gr.Column():
|
301 |
-
video_path = gr.
|
302 |
with gr.Row():
|
303 |
relight_prompt = gr.Textbox(label="Relight Prompt")
|
304 |
bg_source = gr.Dropdown(["NONE", "LEFT", "RIGHT", "BOTTOM", "TOP"], label="Background Source")
|
|
|
293 |
|
294 |
return results_path
|
295 |
|
296 |
+
css="""
|
297 |
+
div#col-container{
|
298 |
+
margin: 0 auto;
|
299 |
+
max-width: 982px;
|
300 |
+
}
|
301 |
+
"""
|
302 |
+
|
303 |
+
with gr.Blocks(css=css) as demo:
|
304 |
with gr.Column(elem_id="col-container"):
|
305 |
gr.Markdown("# Light-A-Video")
|
306 |
+
gr.Markdown("Training-free Video Relighting via Progressive Light Fusion")
|
307 |
+
gr.HTML("""
|
308 |
+
<div style="display:flex;column-gap:4px;">
|
309 |
+
<a href="https://github.com/bcmi/Light-A-Video">
|
310 |
+
<img src='https://img.shields.io/badge/GitHub-Repo-blue'>
|
311 |
+
</a>
|
312 |
+
<a href="https://bujiazi.github.io/light-a-video.github.io/">
|
313 |
+
<img src='https://img.shields.io/badge/Project-Page-green'>
|
314 |
+
</a>
|
315 |
+
<a href="https://arxiv.org/abs/2502.08590">
|
316 |
+
<img src='https://img.shields.io/badge/ArXiv-Paper-red'>
|
317 |
+
</a>
|
318 |
+
<a href="https://huggingface.co/spaces/fffiloni/Light-A-Video?duplicate=true">
|
319 |
+
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-sm.svg" alt="Duplicate this Space">
|
320 |
+
</a>
|
321 |
+
<a href="https://huggingface.co/fffiloni">
|
322 |
+
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/follow-me-on-HF-sm-dark.svg" alt="Follow me on HF">
|
323 |
+
</a>
|
324 |
+
</div>
|
325 |
+
""")
|
326 |
with gr.Row():
|
327 |
with gr.Column():
|
328 |
+
video_path = gr.Video(label="Video Path")
|
329 |
with gr.Row():
|
330 |
relight_prompt = gr.Textbox(label="Relight Prompt")
|
331 |
bg_source = gr.Dropdown(["NONE", "LEFT", "RIGHT", "BOTTOM", "TOP"], label="Background Source")
|