Spaces:
Runtime error
Runtime error
weifeng
commited on
Commit
·
0faea8d
1
Parent(s):
af387de
Update app.py
Browse files
app.py
CHANGED
@@ -59,8 +59,8 @@ with gr.Blocks() as demo:
|
|
59 |
with gr.Row(scale=0.5 ):
|
60 |
guide = gr.Slider(2, 15, value = 7, label = '文本引导强度(guidance scale)')
|
61 |
steps = gr.Slider(10, 30, value = 20, step = 1, label = '迭代次数(inference steps)')
|
62 |
-
width = gr.Slider(
|
63 |
-
height = gr.Slider(
|
64 |
strength = gr.Slider(0, 1.0, value = 0.8, step = 0.05, label = '参考图改变程度(strength)')
|
65 |
ex = gr.Examples(examples, fn=infer_text2img, inputs=[prompt, guide, steps, width, height], outputs=image_out)
|
66 |
|
|
|
59 |
with gr.Row(scale=0.5 ):
|
60 |
guide = gr.Slider(2, 15, value = 7, label = '文本引导强度(guidance scale)')
|
61 |
steps = gr.Slider(10, 30, value = 20, step = 1, label = '迭代次数(inference steps)')
|
62 |
+
width = gr.Slider(512, 512, value = 512, step = 64, label = '宽度(width)')
|
63 |
+
height = gr.Slider(512, 512, value = 512, step = 64, label = '高度(height)')
|
64 |
strength = gr.Slider(0, 1.0, value = 0.8, step = 0.05, label = '参考图改变程度(strength)')
|
65 |
ex = gr.Examples(examples, fn=infer_text2img, inputs=[prompt, guide, steps, width, height], outputs=image_out)
|
66 |
|