linoyts HF Staff commited on
Commit
dffc412
Β·
verified Β·
1 Parent(s): 97ff6b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -15
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.Row():
145
- with gr.Column():
146
- prompt_input = gr.Textbox(label="Prompt", value=default_prompt_t2v)
147
- with gr.Accordion("Advanced Settings", open=False):
148
- negative_prompt_input = gr.Textbox(label="Negative Prompt", value=default_negative_prompt, lines=3)
149
- seed_input = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=42, interactive=True)
150
- randomize_seed_checkbox = gr.Checkbox(label="Randomize seed", value=True, interactive=True)
151
- steps_slider = gr.Slider(minimum=1, maximum=30, step=1, value=27, label="Inference Steps")
152
- guidance_scale_input = gr.Slider(minimum=0.0, maximum=10.0, step=0.5, value=3.5, label="Guidance Scale - high noise stage")
153
- guidance_scale_2_input = gr.Slider(minimum=0.0, maximum=10.0, step=0.5, value=4, label="Guidance Scale 2 - low noise stage")
154
-
155
- generate_button = gr.Button("Generate Image", variant="primary")
156
- with gr.Column():
157
- img_output = gr.Image(label="Generated Image", interactive=False)
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,