Spaces:
Running
Running
Update gradio_app.py
Browse files- gradio_app.py +5 -4
gradio_app.py
CHANGED
@@ -296,7 +296,7 @@ def infer(n_prompt, relight_prompt, video_path, bg_source,
|
|
296 |
css="""
|
297 |
div#col-container{
|
298 |
margin: 0 auto;
|
299 |
-
max-width:
|
300 |
}
|
301 |
"""
|
302 |
|
@@ -327,8 +327,8 @@ with gr.Blocks(css=css) as demo:
|
|
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")
|
332 |
|
333 |
with gr.Accordion(label="Advanced Settings", open=False):
|
334 |
n_prompt = gr.Textbox(label="Negative Prompt", value="bad quality, worse quality")
|
@@ -364,7 +364,8 @@ with gr.Blocks(css=css) as demo:
|
|
364 |
["./input_animatediff/toy.mp4", "a maneki-neko toy, cozy bedroom illumination", "RIGHT"],
|
365 |
["./input_animatediff/woman.mp4", "a woman with curly hair, natural lighting, warm atmosphere", "LEFT"],
|
366 |
],
|
367 |
-
inputs=[video_path, relight_prompt, bg_source]
|
|
|
368 |
)
|
369 |
|
370 |
with gr.Column():
|
|
|
296 |
css="""
|
297 |
div#col-container{
|
298 |
margin: 0 auto;
|
299 |
+
max-width: 1200px;
|
300 |
}
|
301 |
"""
|
302 |
|
|
|
327 |
with gr.Column():
|
328 |
video_path = gr.Video(label="Video Path")
|
329 |
with gr.Row():
|
330 |
+
relight_prompt = gr.Textbox(label="Relight Prompt", scale=3)
|
331 |
+
bg_source = gr.Dropdown(["NONE", "LEFT", "RIGHT", "BOTTOM", "TOP"], label="Background Source", scale=1)
|
332 |
|
333 |
with gr.Accordion(label="Advanced Settings", open=False):
|
334 |
n_prompt = gr.Textbox(label="Negative Prompt", value="bad quality, worse quality")
|
|
|
364 |
["./input_animatediff/toy.mp4", "a maneki-neko toy, cozy bedroom illumination", "RIGHT"],
|
365 |
["./input_animatediff/woman.mp4", "a woman with curly hair, natural lighting, warm atmosphere", "LEFT"],
|
366 |
],
|
367 |
+
inputs=[video_path, relight_prompt, bg_source],
|
368 |
+
examples_per_page=3
|
369 |
)
|
370 |
|
371 |
with gr.Column():
|