Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -235,13 +235,13 @@ def create_interface():
|
|
| 235 |
gr.Markdown("Tip: Recommended size is 832x1216 for best results.")
|
| 236 |
|
| 237 |
num_inference_steps_input = gr.Slider(label="Inference Steps", minimum=1, maximum=100, value=28, step=1)
|
| 238 |
-
guidance_scale_input = gr.Slider(label="Guidance Scale (CFG)", minimum=0.0, maximum=
|
| 239 |
seed_number_input = gr.Number(label="Seed", value=-1, minimum=-1, step=1, info="Leave blank or set to -1 for a random seed.")
|
| 240 |
generate_button = gr.Button("Generate Image", variant="primary")
|
| 241 |
|
| 242 |
with gr.Column(scale=1):
|
| 243 |
gr.Markdown("### 2. Results")
|
| 244 |
-
image_output = gr.Image(label="Generated Image", type="pil", show_download_button=True, height=
|
| 245 |
recapped_prompt_output = gr.Textbox(label="Final Prompt Used", lines=5, interactive=False)
|
| 246 |
status_output = gr.Textbox(label="Status Log", lines=4, interactive=False)
|
| 247 |
|
|
|
|
| 235 |
gr.Markdown("Tip: Recommended size is 832x1216 for best results.")
|
| 236 |
|
| 237 |
num_inference_steps_input = gr.Slider(label="Inference Steps", minimum=1, maximum=100, value=28, step=1)
|
| 238 |
+
guidance_scale_input = gr.Slider(label="Guidance Scale (CFG)", minimum=0.0, maximum=10.0, value=3.5, step=0.1)
|
| 239 |
seed_number_input = gr.Number(label="Seed", value=-1, minimum=-1, step=1, info="Leave blank or set to -1 for a random seed.")
|
| 240 |
generate_button = gr.Button("Generate Image", variant="primary")
|
| 241 |
|
| 242 |
with gr.Column(scale=1):
|
| 243 |
gr.Markdown("### 2. Results")
|
| 244 |
+
image_output = gr.Image(label="Generated Image", type="pil", show_download_button=True, height=500, container=False, elem_classes=["preserve-aspect-ratio"])
|
| 245 |
recapped_prompt_output = gr.Textbox(label="Final Prompt Used", lines=5, interactive=False)
|
| 246 |
status_output = gr.Textbox(label="Status Log", lines=4, interactive=False)
|
| 247 |
|