Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,7 +54,7 @@ def infer(prompt, seed=42, randomize_seed=False, num_inference_steps=4, progress
|
|
| 54 |
).images[0]
|
| 55 |
gif_name = f"{uuid.uuid4().hex}-flux.gif"
|
| 56 |
export_to_gif(split_image(image, 4), gif_name, fps=4)
|
| 57 |
-
return gif_name,
|
| 58 |
|
| 59 |
examples = [
|
| 60 |
"a cute cat raising holding a sign that reads \"Flux does Video?\"",
|
|
@@ -67,6 +67,9 @@ css="""
|
|
| 67 |
margin: 0 auto;
|
| 68 |
max-width: 640px;
|
| 69 |
}
|
|
|
|
|
|
|
|
|
|
| 70 |
"""
|
| 71 |
|
| 72 |
with gr.Blocks(css=css) as demo:
|
|
@@ -90,7 +93,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 90 |
run_button = gr.Button("Run", scale=0)
|
| 91 |
|
| 92 |
result = gr.Image(label="Result", show_label=False)
|
| 93 |
-
result_full = gr.Image(label="Gif Strip",
|
| 94 |
with gr.Accordion("Advanced Settings", open=False):
|
| 95 |
|
| 96 |
seed = gr.Slider(
|
|
|
|
| 54 |
).images[0]
|
| 55 |
gif_name = f"{uuid.uuid4().hex}-flux.gif"
|
| 56 |
export_to_gif(split_image(image, 4), gif_name, fps=4)
|
| 57 |
+
return gif_name, image, seed
|
| 58 |
|
| 59 |
examples = [
|
| 60 |
"a cute cat raising holding a sign that reads \"Flux does Video?\"",
|
|
|
|
| 67 |
margin: 0 auto;
|
| 68 |
max-width: 640px;
|
| 69 |
}
|
| 70 |
+
#strip{
|
| 71 |
+
max-height: 160px
|
| 72 |
+
}
|
| 73 |
"""
|
| 74 |
|
| 75 |
with gr.Blocks(css=css) as demo:
|
|
|
|
| 93 |
run_button = gr.Button("Run", scale=0)
|
| 94 |
|
| 95 |
result = gr.Image(label="Result", show_label=False)
|
| 96 |
+
result_full = gr.Image(label="Gif Strip", elem_id="strip")
|
| 97 |
with gr.Accordion("Advanced Settings", open=False):
|
| 98 |
|
| 99 |
seed = gr.Slider(
|