Dao3 commited on
Commit
f3e2f6e
·
1 Parent(s): 9554326

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -10,7 +10,7 @@ from threading import Thread
10
  import emoji
11
 
12
 
13
- text_gen=gr.Interface.load("spaces/phenomenon1981/MagicPrompt-Stable-Diffusion")
14
  def get_prompts(prompt_text):
15
  if prompt_text:
16
  return text_gen("dreamlikeart, " + prompt_text)
@@ -90,11 +90,10 @@ with gr.Blocks(css='style.css') as demo:
90
  </h1>
91
  </div>
92
  <p style="margin-bottom: 10px; font-size: 96%">
93
- Noise Level: Controls how much randomness is added to the input before it is sent to the model. Higher noise level produces more diverse outputs, while lower noise level produces similar outputs,
94
- <a href="https://twitter.com/DavidJohnstonxx/">created by Phenomenon1981</a>.
95
  </p>
96
  <p style="margin-bottom: 10px; font-size: 98%">
97
- ❤️ Press the Like Button if you enjoy my space! ❤️</a>
98
  </p>
99
  </div>
100
  """
@@ -105,11 +104,11 @@ with gr.Blocks(css='style.css') as demo:
105
  label="Short Prompt",
106
  show_label=False,
107
  max_lines=2,
108
- placeholder="Enter a basic idea and click 'Magic Prompt'. Got no ideas? No problem, Simply just hit the magic button!",
109
  ).style(
110
  container=False,
111
  )
112
- see_prompts = gr.Button("✨ Magic Prompt ✨").style(full_width=False)
113
 
114
 
115
  with gr.Row(variant="compact"):
@@ -117,15 +116,15 @@ with gr.Blocks(css='style.css') as demo:
117
  label="Enter your prompt",
118
  show_label=False,
119
  max_lines=2,
120
- placeholder="Full Prompt",
121
  ).style(
122
  container=False,
123
  )
124
- run = gr.Button("Generate Images").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="Noise Level")
129
  with gr.Row():
130
  with gr.Row():
131
  output1=gr.Image(label="Dreamlike Diffusion 1.0",show_label=False)
@@ -145,8 +144,9 @@ with gr.Blocks(css='style.css') as demo:
145
  </p>
146
  </div>
147
  <div class="acknowledgments" style="font-size: 115%">
148
- <p> 在第一个框里写你想画的内容,简单的描述即可;然后点击Magic Prompt,程序会添加合适的描述词. 另外,可以改动 "Noise Level" (噪音级别),随着数字的调整,会有相近到差异巨大不同情况出现. Let the fun begin!
149
- </p>
 
150
  </div>
151
  """
152
  )
 
10
  import emoji
11
 
12
 
13
+ text_gen=gr.Interface.load("spaces/Dao3/MagicPrompt-Stable-Diffusion")
14
  def get_prompts(prompt_text):
15
  if prompt_text:
16
  return text_gen("dreamlikeart, " + prompt_text)
 
90
  </h1>
91
  </div>
92
  <p style="margin-bottom: 10px; font-size: 96%">
93
+ 差异程度: 用数值调节两张图的差异程度。数值越大,两张图的差异越大,反之越小。
 
94
  </p>
95
  <p style="margin-bottom: 10px; font-size: 98%">
96
+ ❤️ 喜欢的话,就点上面的❤️吧~❤️</a>
97
  </p>
98
  </div>
99
  """
 
104
  label="Short Prompt",
105
  show_label=False,
106
  max_lines=2,
107
+ placeholder="在这里写下简单的英文单词,然后按右边按钮。没灵感?直接按!",
108
  ).style(
109
  container=False,
110
  )
111
+ see_prompts = gr.Button("✨ 咒语显现 ✨").style(full_width=False)
112
 
113
 
114
  with gr.Row(variant="compact"):
 
116
  label="Enter your prompt",
117
  show_label=False,
118
  max_lines=2,
119
+ placeholder="按第一个按钮后,这里会出现一组单词,然后按右侧第二个按钮。或者你也可以直接在这里输入,然后按右边按钮。",
120
  ).style(
121
  container=False,
122
  )
123
+ run = gr.Button("✨幻梦显形✨").style(full_width=False)
124
 
125
  with gr.Row():
126
  with gr.Row():
127
+ noise_level = gr.Slider(minimum=0.0, maximum=3, step=0.1, label="差异程度")
128
  with gr.Row():
129
  with gr.Row():
130
  output1=gr.Image(label="Dreamlike Diffusion 1.0",show_label=False)
 
144
  </p>
145
  </div>
146
  <div class="acknowledgments" style="font-size: 115%">
147
+ <p>
148
+
149
+ 这个模型和<a href="https://huggingface.co/spaces/Dao3/DreamlikeArt-PhotoReal-2.0">幻梦成真</a>的区别是:幻梦成真更真实,这个模型更虚幻。 </p>
150
  </div>
151
  """
152
  )