Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -89,8 +89,8 @@ with gr.Blocks() as demo:
|
|
89 |
with gr.Row():
|
90 |
with gr.Column():
|
91 |
prompt = gr.Textbox(label='Prompt', value='portrait, color, cinematic')
|
92 |
-
width = gr.Slider(256, 1536,
|
93 |
-
height = gr.Slider(256, 1536,
|
94 |
guidance = gr.Slider(1.0, 10.0, 5, step=0.1, label='Guidance')
|
95 |
seed = gr.Number(-1, precision=0, label='Seed (-1 for random)')
|
96 |
|
@@ -103,12 +103,12 @@ with gr.Blocks() as demo:
|
|
103 |
|
104 |
prompt.submit(
|
105 |
fn=generate_image,
|
106 |
-
inputs=[width, height, guidance, seed
|
107 |
outputs=[output_image, seed_output, intermediate_output],
|
108 |
)
|
109 |
generate_btn.click(
|
110 |
fn=generate_image,
|
111 |
-
inputs=[width, height, guidance, seed
|
112 |
outputs=[output_image, seed_output, intermediate_output],
|
113 |
)
|
114 |
|
|
|
89 |
with gr.Row():
|
90 |
with gr.Column():
|
91 |
prompt = gr.Textbox(label='Prompt', value='portrait, color, cinematic')
|
92 |
+
width = gr.Slider(256, 1536, 256, step=16, label='Width')
|
93 |
+
height = gr.Slider(256, 1536, 256, step=16, label='Height')
|
94 |
guidance = gr.Slider(1.0, 10.0, 5, step=0.1, label='Guidance')
|
95 |
seed = gr.Number(-1, precision=0, label='Seed (-1 for random)')
|
96 |
|
|
|
103 |
|
104 |
prompt.submit(
|
105 |
fn=generate_image,
|
106 |
+
inputs=[prompt, width, height, guidance, seed],
|
107 |
outputs=[output_image, seed_output, intermediate_output],
|
108 |
)
|
109 |
generate_btn.click(
|
110 |
fn=generate_image,
|
111 |
+
inputs=[prompt, width, height, guidance, seed],
|
112 |
outputs=[output_image, seed_output, intermediate_output],
|
113 |
)
|
114 |
|