Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,8 +70,8 @@ def get_duration(
|
|
| 70 |
steps,
|
| 71 |
seed,
|
| 72 |
randomize_seed,
|
| 73 |
-
width,
|
| 74 |
-
height,
|
| 75 |
progress,
|
| 76 |
):
|
| 77 |
return steps * 2
|
|
@@ -85,8 +85,8 @@ def generate_image(
|
|
| 85 |
steps = 27,
|
| 86 |
seed = 42,
|
| 87 |
randomize_seed = False,
|
| 88 |
-
width=1024,
|
| 89 |
-
height=1024,
|
| 90 |
progress=gr.Progress(track_tqdm=True),
|
| 91 |
):
|
| 92 |
"""
|
|
@@ -130,8 +130,8 @@ def generate_image(
|
|
| 130 |
out_img = pipe(
|
| 131 |
prompt=prompt,
|
| 132 |
negative_prompt=negative_prompt,
|
| 133 |
-
height=
|
| 134 |
-
width=
|
| 135 |
num_frames=1,
|
| 136 |
guidance_scale=float(guidance_scale),
|
| 137 |
guidance_scale_2=float(guidance_scale_2),
|
|
@@ -185,7 +185,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 185 |
ui_inputs = [
|
| 186 |
prompt_input,
|
| 187 |
negative_prompt_input,
|
| 188 |
-
guidance_scale_input, guidance_scale_2_input, steps_slider, seed_input, randomize_seed_checkbox
|
|
|
|
| 189 |
]
|
| 190 |
generate_button.click(fn=generate_image, inputs=ui_inputs, outputs=[img_output, seed_input])
|
| 191 |
|
|
|
|
| 70 |
steps,
|
| 71 |
seed,
|
| 72 |
randomize_seed,
|
| 73 |
+
# width,
|
| 74 |
+
# height,
|
| 75 |
progress,
|
| 76 |
):
|
| 77 |
return steps * 2
|
|
|
|
| 85 |
steps = 27,
|
| 86 |
seed = 42,
|
| 87 |
randomize_seed = False,
|
| 88 |
+
# width=1024,
|
| 89 |
+
# height=1024,
|
| 90 |
progress=gr.Progress(track_tqdm=True),
|
| 91 |
):
|
| 92 |
"""
|
|
|
|
| 130 |
out_img = pipe(
|
| 131 |
prompt=prompt,
|
| 132 |
negative_prompt=negative_prompt,
|
| 133 |
+
height=1024,
|
| 134 |
+
width=1024,
|
| 135 |
num_frames=1,
|
| 136 |
guidance_scale=float(guidance_scale),
|
| 137 |
guidance_scale_2=float(guidance_scale_2),
|
|
|
|
| 185 |
ui_inputs = [
|
| 186 |
prompt_input,
|
| 187 |
negative_prompt_input,
|
| 188 |
+
guidance_scale_input, guidance_scale_2_input, steps_slider, seed_input, randomize_seed_checkbox
|
| 189 |
+
# width, height
|
| 190 |
]
|
| 191 |
generate_button.click(fn=generate_image, inputs=ui_inputs, outputs=[img_output, seed_input])
|
| 192 |
|