Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -142,8 +142,8 @@ with gr.Blocks(css="cake.css") as myface:
|
|
142 |
gr.HTML("""<head><meta http-equiv="refresh" content="600"></head>""")
|
143 |
with gr.Column():
|
144 |
gr.HTML("""<title>SD的二十个最流行模型</title>""")
|
145 |
-
gr.Markdown("""<center><h1>20个SD
|
146 |
-
gr.Markdown("""<center><h4
|
147 |
with gr.Accordion("使用说明",open=False):
|
148 |
with gr.Tab("Description"):
|
149 |
gr.Markdown("""<center>
|
@@ -155,21 +155,21 @@ with gr.Blocks(css="cake.css") as myface:
|
|
155 |
<br>
|
156 |
我们不对最终生成的内容负责,权责自负哦~
|
157 |
</h4></center>""")
|
158 |
-
with gr.Tab("
|
159 |
gr.HTML("""<div style="text-align:Left;">
|
160 |
-
<h4
|
161 |
-
|
162 |
import gradio as gr<br>
|
163 |
max_d=gr.Interface.load("spaces/Dao3/Top-20-Models")<br>
|
164 |
max_d.launch()<br>
|
165 |
</h4></div>""")
|
166 |
-
with gr.Tab("
|
167 |
with gr.Row():
|
168 |
with gr.Column(style="text-align:left;"):
|
169 |
gr.HTML("""
|
170 |
<div style="vertical-align:center">
|
171 |
<br>
|
172 |
-
<p
|
173 |
<p><a href="https://huggingface.co/spaces/Gustavosta/MagicPrompt-Stable-Diffusion">Magic Prompt Stable Diffusion</a></p>
|
174 |
<p><a href="https://huggingface.co/spaces/huggingface-projects/magic-diffusion">Magic Diffusion</a></p>
|
175 |
</div>
|
@@ -178,7 +178,7 @@ with gr.Blocks(css="cake.css") as myface:
|
|
178 |
gr.HTML(f"""
|
179 |
<div style="vertical-align:center">
|
180 |
<br>
|
181 |
-
<p
|
182 |
<a href="https://huggingface.co/{models[1]}">{models[1]}</a><br>
|
183 |
<a href="https://huggingface.co/{models[2]}">{models[2]}</a><br>
|
184 |
<a href="https://huggingface.co/{models[3]}">{models[3]}</a><br>
|
@@ -202,7 +202,7 @@ with gr.Blocks(css="cake.css") as myface:
|
|
202 |
</p>
|
203 |
</div>
|
204 |
""")
|
205 |
-
with gr.Tab("
|
206 |
with gr.Tab("Draw"):
|
207 |
with gr.Row():
|
208 |
with gr.Column(style="width=50%"):
|
@@ -229,8 +229,8 @@ with gr.Blocks(css="cake.css") as myface:
|
|
229 |
with gr.Box(visible=True) as timo:
|
230 |
with gr.Row():
|
231 |
with gr.Column():
|
232 |
-
input_text=gr.Textbox(label="你想画的内容(
|
233 |
-
prompt=gr.Textbox(label="
|
234 |
with gr.Column():
|
235 |
see_prompts=gr.Button("完善")
|
236 |
with gr.Row():
|
|
|
142 |
gr.HTML("""<head><meta http-equiv="refresh" content="600"></head>""")
|
143 |
with gr.Column():
|
144 |
gr.HTML("""<title>SD的二十个最流行模型</title>""")
|
145 |
+
gr.Markdown("""<center><h1>20个SD模型</h1><center>""")
|
146 |
+
gr.Markdown("""<center><h4>一次生成20张不同风格的图</h4><center>""")
|
147 |
with gr.Accordion("使用说明",open=False):
|
148 |
with gr.Tab("Description"):
|
149 |
gr.Markdown("""<center>
|
|
|
155 |
<br>
|
156 |
我们不对最终生成的内容负责,权责自负哦~
|
157 |
</h4></center>""")
|
158 |
+
with gr.Tab("魔改一下"):
|
159 |
gr.HTML("""<div style="text-align:Left;">
|
160 |
+
<h4>克隆一个你自己的:<br><br>
|
161 |
+
新建app.py 文件,把下面代码复制黏贴进去<br><br>
|
162 |
import gradio as gr<br>
|
163 |
max_d=gr.Interface.load("spaces/Dao3/Top-20-Models")<br>
|
164 |
max_d.launch()<br>
|
165 |
</h4></div>""")
|
166 |
+
with gr.Tab("致谢"):
|
167 |
with gr.Row():
|
168 |
with gr.Column(style="text-align:left;"):
|
169 |
gr.HTML("""
|
170 |
<div style="vertical-align:center">
|
171 |
<br>
|
172 |
+
<p>提示词优化方法来自:
|
173 |
<p><a href="https://huggingface.co/spaces/Gustavosta/MagicPrompt-Stable-Diffusion">Magic Prompt Stable Diffusion</a></p>
|
174 |
<p><a href="https://huggingface.co/spaces/huggingface-projects/magic-diffusion">Magic Diffusion</a></p>
|
175 |
</div>
|
|
|
178 |
gr.HTML(f"""
|
179 |
<div style="vertical-align:center">
|
180 |
<br>
|
181 |
+
<p>模型来自:<br>
|
182 |
<a href="https://huggingface.co/{models[1]}">{models[1]}</a><br>
|
183 |
<a href="https://huggingface.co/{models[2]}">{models[2]}</a><br>
|
184 |
<a href="https://huggingface.co/{models[3]}">{models[3]}</a><br>
|
|
|
202 |
</p>
|
203 |
</div>
|
204 |
""")
|
205 |
+
with gr.Tab("工具"):
|
206 |
with gr.Tab("Draw"):
|
207 |
with gr.Row():
|
208 |
with gr.Column(style="width=50%"):
|
|
|
229 |
with gr.Box(visible=True) as timo:
|
230 |
with gr.Row():
|
231 |
with gr.Column():
|
232 |
+
input_text=gr.Textbox(label="你想画的内容(英文单词,如a cat, 加英文逗号效果更好;点完善按钮)")
|
233 |
+
prompt=gr.Textbox(label="完善后的提示词,出现后再点右边的开始按钮",visible=True)
|
234 |
with gr.Column():
|
235 |
see_prompts=gr.Button("完善")
|
236 |
with gr.Row():
|