Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -141,21 +141,23 @@ def generate_image(
|
|
| 141 |
with gr.Blocks() as demo:
|
| 142 |
gr.Markdown("# Wan 2.2 (14B) Image")
|
| 143 |
gr.Markdown("generate high quality images with Wan 2.2 14B")
|
| 144 |
-
with gr.
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
|
|
|
|
|
|
| 159 |
ui_inputs = [
|
| 160 |
prompt_input,
|
| 161 |
negative_prompt_input,
|
|
|
|
| 141 |
with gr.Blocks() as demo:
|
| 142 |
gr.Markdown("# Wan 2.2 (14B) Image")
|
| 143 |
gr.Markdown("generate high quality images with Wan 2.2 14B")
|
| 144 |
+
with gr.Column():
|
| 145 |
+
with gr.Row():
|
| 146 |
+
prompt_input = gr.Textbox(show_label=False,
|
| 147 |
+
max_lines=1,
|
| 148 |
+
placeholder="Enter your prompt",
|
| 149 |
+
container=False,)
|
| 150 |
+
generate_button = gr.Button("Run", variant="primary", scale=0)
|
| 151 |
+
img_output = gr.Image(label="Generated Image", interactive=False)
|
| 152 |
+
with gr.Accordion("Advanced Settings", open=False):
|
| 153 |
+
negative_prompt_input = gr.Textbox(label="Negative Prompt", value=default_negative_prompt, lines=3)
|
| 154 |
+
seed_input = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=42, interactive=True)
|
| 155 |
+
randomize_seed_checkbox = gr.Checkbox(label="Randomize seed", value=True, interactive=True)
|
| 156 |
+
steps_slider = gr.Slider(minimum=1, maximum=30, step=1, value=27, label="Inference Steps")
|
| 157 |
+
guidance_scale_input = gr.Slider(minimum=0.0, maximum=10.0, step=0.5, value=3.5, label="Guidance Scale - high noise stage")
|
| 158 |
+
guidance_scale_2_input = gr.Slider(minimum=0.0, maximum=10.0, step=0.5, value=4, label="Guidance Scale 2 - low noise stage")
|
| 159 |
+
|
| 160 |
+
|
| 161 |
ui_inputs = [
|
| 162 |
prompt_input,
|
| 163 |
negative_prompt_input,
|