weifeng commited on
Commit
15b949a
1 Parent(s): 0faea8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -57,11 +57,11 @@ with gr.Blocks() as demo:
57
  prompt = gr.Textbox(label = '提示词(prompt)')
58
  submit_btn = gr.Button("生成图像(Generate)")
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
 
67
  # with gr.Column(scale=1, ):
 
57
  prompt = gr.Textbox(label = '提示词(prompt)')
58
  submit_btn = gr.Button("生成图像(Generate)")
59
  with gr.Row(scale=0.5 ):
60
+ guide = gr.Slider(2, 15, value = 7, step = 0.1, label = '文本引导强度(guidance scale)')
61
  steps = gr.Slider(10, 30, value = 20, step = 1, label = '迭代次数(inference steps)')
62
+ width = gr.Slider(384, 640, value = 512, step = 64, label = '宽度(width)')
63
+ height = gr.Slider(384, 640, value = 512, step = 64, label = '高度(height)')
64
+ strength = gr.Slider(0, 1.0, value = 0.8, step = 0.02, label = '参考图改变程度(strength)')
65
  ex = gr.Examples(examples, fn=infer_text2img, inputs=[prompt, guide, steps, width, height], outputs=image_out)
66
 
67
  # with gr.Column(scale=1, ):