Justin-Choo commited on
Commit
df15986
1 Parent(s): 91fd73b

Update I-am-Justin.py

Browse files
Files changed (1) hide show
  1. I-am-Justin.py +0 -22
I-am-Justin.py CHANGED
@@ -60,8 +60,6 @@ models = [
60
  ]
61
  current_model = models[0]
62
 
63
- text_gen1=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
64
-
65
  models2=[
66
  gr.Interface.load(f"models/{models[0]}",live=True,preprocess=False),
67
  gr.Interface.load(f"models/{models[1]}",live=True,preprocess=False),
@@ -143,14 +141,6 @@ with gr.Blocks(css=css) as myface:
143
  <h1>输入文字生成图像</h1>
144
  <br><h4>第一次导入模型可能需要200秒生成</h4>
145
  <br><h4>之后一般只需20秒左右</h4>""")
146
- with gr.Tab("内置模型解释"):
147
- gr.HTML(""" <title>在内置模型中生成图片可能出现的问题</title><div style="text-align: center; max-width: 1500px; margin: 0 auto;">
148
- <h4>1. 使用Envvi/Inkpunk-Diffusion时,需要在提示词中加上“nvinkpunk”</h4>
149
- <h4>2. 使用digiplay/majicMIX_realistic_v6时,在提示词中加上“HI-RES”效果更好</h4>
150
- <h4>3. 使用digiplay/LuckyStrikeMix1.05_Lovelylady时,在提示词中加上“photorealism”,“8k”等关键词,效果更好</h4>
151
- <h4>4. 使用yehiaserag/anime-pencil-diffusion时,需在提示词中加上“animepencilconcept style”或“anime pencil concept style”</h4>
152
- <h4>5. 使用shindi/realistic-skin-style时,需在提示词中加上“jqkz”或“jqkz style”。如果想要强调某个词,可以加括号,例子:“A woman with ((blue eyes)) wearing a (((Hijab))), jqkz”</h4>""")
153
- with gr.Row():
154
  with gr.Column(scale=100):
155
  magic1=gr.Textbox(label="输入提示词:", lines=4, placeholder = "英文")
156
  run=gr.Button("生成图像")
@@ -161,14 +151,6 @@ with gr.Blocks(css=css) as myface:
161
  with gr.Column(style="width=1600px"):
162
  output1=gr.Image(label=(f"{current_model}"), width=600, height=600)
163
 
164
-
165
- with gr.Row():
166
- with gr.Column(scale=50):
167
- gr.HTML("""<h1>没有想法?</h1>""")
168
- input_text=gr.Textbox(label="输入提示词点子:",lines=2, placeholder = "英文")
169
- use_short=gr.Button("使用精简提示词(使用框中提示词)")
170
- see_prompts=gr.Button("扩充框内提示词")
171
-
172
 
173
  def short_prompt(inputs):
174
  return(inputs)
@@ -177,9 +159,5 @@ with gr.Blocks(css=css) as myface:
177
 
178
  run.click(send_it1, inputs=[magic1, model_name1], outputs=[output1])
179
 
180
- use_short.click(short_prompt,inputs=[input_text],outputs=magic1)
181
-
182
- see_prompts.click(text_it1,inputs=[input_text],outputs=magic1)
183
-
184
  myface.queue(concurrency_count=200)
185
  myface.launch(inline=True, show_api=False, max_threads=400)
 
60
  ]
61
  current_model = models[0]
62
 
 
 
63
  models2=[
64
  gr.Interface.load(f"models/{models[0]}",live=True,preprocess=False),
65
  gr.Interface.load(f"models/{models[1]}",live=True,preprocess=False),
 
141
  <h1>输入文字生成图像</h1>
142
  <br><h4>第一次导入模型可能需要200秒生成</h4>
143
  <br><h4>之后一般只需20秒左右</h4>""")
 
 
 
 
 
 
 
 
144
  with gr.Column(scale=100):
145
  magic1=gr.Textbox(label="输入提示词:", lines=4, placeholder = "英文")
146
  run=gr.Button("生成图像")
 
151
  with gr.Column(style="width=1600px"):
152
  output1=gr.Image(label=(f"{current_model}"), width=600, height=600)
153
 
 
 
 
 
 
 
 
 
154
 
155
  def short_prompt(inputs):
156
  return(inputs)
 
159
 
160
  run.click(send_it1, inputs=[magic1, model_name1], outputs=[output1])
161
 
 
 
 
 
162
  myface.queue(concurrency_count=200)
163
  myface.launch(inline=True, show_api=False, max_threads=400)