Dao3 commited on
Commit
afe73e1
1 Parent(s): 9a45591

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -11
app.py CHANGED
@@ -87,12 +87,11 @@ with gr.Blocks(css='style.css') as demo:
87
  <div style="text-align: center; max-width: 650px; margin: 0 auto;">
88
  <div>
89
  <h2 style="font-weight: 900; font-size: 3rem; margin-bottom:20px;">
90
- 梦幻真图模型 2.0
91
  </h2>
92
  </div>
93
  <p style="margin-bottom: 10px; font-size: 96%">
94
- 噪音水平: 在提示词输入前,调节提示词的变化随机程度。噪音数值越大,两张图的差异越大,反之越小。
95
- <a href="https://twitter.com/DavidJohnstonxx/">原作者Phenomenon1981</a>,模型来自DreamLike PhotoReal
96
  </p>
97
  <p style="margin-bottom: 10px; font-size: 98%">
98
  ❤️ Press the Like Button if you enjoy my space! ❤️</a>
@@ -106,7 +105,7 @@ with gr.Blocks(css='style.css') as demo:
106
  label="Short Prompt",
107
  show_label=False,
108
  max_lines=2,
109
- placeholder="输入基础的描述词语,然后按咒语显现按钮. 即便不知道想画什么,也可以点击咒语显现按钮。会自动生成一些描述词",
110
  ).style(
111
  container=False,
112
  )
@@ -118,15 +117,15 @@ with gr.Blocks(css='style.css') as demo:
118
  label="输入描述词",
119
  show_label=False,
120
  max_lines=2,
121
- placeholder="完整的描述词",
122
  ).style(
123
  container=False,
124
  )
125
- run = gr.Button("生成图像").style(full_width=False)
126
 
127
  with gr.Row():
128
  with gr.Row():
129
- noise_level = gr.Slider(minimum=0.0, maximum=3, step=0.1, label="Noise Level")
130
  with gr.Row():
131
  with gr.Row():
132
  output1=gr.Image(label="Dreamlike-photoreal-2.0",show_label=False)
@@ -145,11 +144,20 @@ with gr.Blocks(css='style.css') as demo:
145
  gr.HTML(
146
  """
147
  <div class="footer">
148
- <p> Demo for <a href="https://huggingface.co/dreamlike-art/dreamlike-photoreal-2.0">Dreamlike Photoreal 2.0</a> Stable Diffusion model
149
- </p>
150
- </div>
 
 
 
 
 
 
 
 
151
  <div class="acknowledgments" style="font-size: 115%">
152
- <p> Unleash your creative side and generate mesmerizing images with just a few clicks! Enter a spark of inspiration in the "Basic Idea" text box and click the "Magic Prompt" button to elevate it to a polished masterpiece. Make any final tweaks in the "Full Prompt" box and hit the "Generate Images" button to watch your vision come to life. Experiment with the "Noise Level" for a diverse range of outputs, from similar to wildly unique. Let the fun begin!
 
153
  </p>
154
  </div>
155
  """
 
87
  <div style="text-align: center; max-width: 650px; margin: 0 auto;">
88
  <div>
89
  <h2 style="font-weight: 900; font-size: 3rem; margin-bottom:20px;">
90
+ 幻梦成真-2.0
91
  </h2>
92
  </div>
93
  <p style="margin-bottom: 10px; font-size: 96%">
94
+ 差异程度: 用数值调节两张图的差异程度。数值越大,两张图的差异越大,反之越小。
 
95
  </p>
96
  <p style="margin-bottom: 10px; font-size: 98%">
97
  ❤️ Press the Like Button if you enjoy my space! ❤️</a>
 
105
  label="Short Prompt",
106
  show_label=False,
107
  max_lines=2,
108
+ placeholder="输入你的想象(英文词汇),然后按右边按钮。没灵感?直接按!",
109
  ).style(
110
  container=False,
111
  )
 
117
  label="输入描述词",
118
  show_label=False,
119
  max_lines=2,
120
+ placeholder="可输入完整描述词,或者用咒语显现按钮生成",
121
  ).style(
122
  container=False,
123
  )
124
+ run = gr.Button("✨ 幻梦成真✨").style(full_width=False)
125
 
126
  with gr.Row():
127
  with gr.Row():
128
+ noise_level = gr.Slider(minimum=0.0, maximum=3, step=0.1, label="差异程度")
129
  with gr.Row():
130
  with gr.Row():
131
  output1=gr.Image(label="Dreamlike-photoreal-2.0",show_label=False)
 
144
  gr.HTML(
145
  """
146
  <div class="footer">
147
+ <p>
148
+ 使用了<a href="https://huggingface.co/dreamlike-art/dreamlike-photoreal-2.0">Dreamlike Photoreal 2.0</a> 制作的sd模型, <a href="https://twitter.com/DavidJohnstonxx/">本案例最初作者Phenomenon1981</a>
149
+ </p>
150
+ </div>
151
+
152
+
153
+ <div class="acknowledgments" style="font-size: 115%">
154
+ <p> 使用方法1:第一个输入框内输入一个或几个英文单词,用英文逗号,隔开,点第一个按钮,第二个输入框就会生成更丰富的一组词语,再按第二个按钮,下面会生成两张一样的图像。如果提前把差异程度的往右拉,两张图会出现或大或小的差异。
155
+
156
+ </p>
157
+ </div>
158
  <div class="acknowledgments" style="font-size: 115%">
159
+ <p> 使用方法2:直接在第二个输入框内输入(或者从其他地方复制黏贴)一组英文单词,直接按下第二个按钮,下面会生成两张一样的图像。如果提前把差异程度的往右拉,两张图会出现或大或小的差异。
160
+
161
  </p>
162
  </div>
163
  """