Kevin676 commited on
Commit
adc6a7f
·
1 Parent(s): 04b3352

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -74,7 +74,7 @@ def genie (prompt, negative_prompt, scale, steps, seed):
74
 
75
  with gr.Blocks() as demo:
76
  gr.Markdown(
77
- """ # <center>🥳💬💕 - Stable Diffusion,随时随地,想画就画!</center>
78
 
79
  ### <center>🤖 - 让有人文关怀的AI造福每一个人!AI向善,文明璀璨!山水AI - Enable the future!</center>
80
 
@@ -82,25 +82,25 @@ with gr.Blocks() as demo:
82
  )
83
 
84
  with gr.Row().style(equal_height=True):
85
- inp1 = gr.Textbox(label = "您要翻译的中文内容", lines=1)
86
- button = gr.Button("翻译一下吧")
87
- out1 = gr.Textbox(label = "翻译后的英文内容", lines=1)
88
 
89
  button.click(translate, [inp1], [out1])
90
 
91
  with gr.Row().style(equal_height=True):
92
  inp2 = out1
93
  btn1 = gr.Button("让您的提示词更详细一些吧")
94
- out2 = gr.Textbox(label = "更详细的提示词(可在此编辑)", lines=1)
95
 
96
  btn1.click(infer, [inp2], [out2])
97
 
98
  with gr.Row().style(equal_height=True):
99
  inp3 = out2
100
- inp4 = gr.Textbox(label="删去一些您不想要的特点(反向关键词;选填)", placeholder = "low quality", lines=1)
101
- inp5 = gr.Slider(1, 25, 10)
102
- inp6 = gr.Slider(30, maximum=75, value=50, step=1)
103
- inp7 = gr.Slider(minimum=1, step=1, maximum=999999999999999999, randomize=True)
104
 
105
  with gr.Row().style(equal_height=True):
106
  btn2 = gr.Button("开始生成图片吧")
 
74
 
75
  with gr.Blocks() as demo:
76
  gr.Markdown(
77
+ """ # <center>🥳💬💕 - Stable Diffusion All in One,随时随地,想画就画!</center>
78
 
79
  ### <center>🤖 - 让有人文关怀的AI造福每一个人!AI向善,文明璀璨!山水AI - Enable the future!</center>
80
 
 
82
  )
83
 
84
  with gr.Row().style(equal_height=True):
85
+ inp1 = gr.Textbox(label = "请输入中文提示词", lines=1)
86
+ button = gr.Button("翻译成英文吧")
87
+ out1 = gr.Textbox(label = "翻译后的英文提示词", lines=1)
88
 
89
  button.click(translate, [inp1], [out1])
90
 
91
  with gr.Row().style(equal_height=True):
92
  inp2 = out1
93
  btn1 = gr.Button("让您的提示词更详细一些吧")
94
+ out2 = gr.Textbox(label = "更详细的英文提示词(可编辑此内容)", lines=1)
95
 
96
  btn1.click(infer, [inp2], [out2])
97
 
98
  with gr.Row().style(equal_height=True):
99
  inp3 = out2
100
+ inp4 = gr.Textbox(label="反向关键词:删除不想要的图片特点(选填)", placeholder = "low quality, illustration", lines=1)
101
+ inp5 = gr.Slider(1, 25, 10, label="提示词的符合度", info="数值越大,图片越符合提示词,但同时画质会下降")
102
+ inp6 = gr.Slider(30, maximum=100, value=50, step=1, label="生成图片的步数", info="数值越大,图片越清晰,但运行时间会变长")
103
+ inp7 = gr.Slider(minimum=1, step=1, maximum=999999999999999999, randomize=True, label="seed", info="生成一个随机数")
104
 
105
  with gr.Row().style(equal_height=True):
106
  btn2 = gr.Button("开始生成图片吧")