Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ model_18=models[18]
|
|
50 |
model_19=models[19]
|
51 |
model_20=models[20]
|
52 |
|
53 |
-
text_gen=gr.Interface.load("spaces/
|
54 |
|
55 |
proc1=gr.Interface.load(f"models/{model_1}",live=False,preprocess=True, postprocess=False)
|
56 |
proc2=gr.Interface.load(f"models/{model_2}",live=False,preprocess=True, postprocess=False)
|
@@ -141,16 +141,13 @@ def send_it20(inputs,proc20=proc20):
|
|
141 |
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>
|
145 |
-
gr.Markdown("""<center><h1>
|
146 |
-
gr.Markdown("""<center><h4
|
147 |
-
|
148 |
-
with gr.Accordion("Details",open=False):
|
149 |
with gr.Tab("Description"):
|
150 |
gr.Markdown("""<center>
|
151 |
-
<h4
|
152 |
-
When you are satisfied with the prompt that is in the "Text to Image" box, click "Launch" to load the Models.<br><br>
|
153 |
-
Images load faster with a simpler prompt.<br>
|
154 |
<br>
|
155 |
Images will cancel loading after 1 minute to preserve the quality of the queue.<br>
|
156 |
Simply Click "Launch" again to try loading the incomplete images.<br>
|
@@ -233,13 +230,13 @@ with gr.Blocks(css="cake.css") as myface:
|
|
233 |
with gr.Box(visible=True) as timo:
|
234 |
with gr.Row():
|
235 |
with gr.Column():
|
236 |
-
input_text=gr.Textbox(label="
|
237 |
-
prompt=gr.Textbox(label="
|
238 |
with gr.Column():
|
239 |
-
see_prompts=gr.Button("
|
240 |
with gr.Row():
|
241 |
-
run=gr.Button("
|
242 |
-
clear_btn=gr.Button("
|
243 |
with gr.Row():
|
244 |
output1=gr.Image(label=(f"{model_1}"),visible=True)
|
245 |
output2=gr.Image(label=(f"{model_2}"),visible=True)
|
|
|
50 |
model_19=models[19]
|
51 |
model_20=models[20]
|
52 |
|
53 |
+
text_gen=gr.Interface.load("spaces/Dao3/MagicPrompt-Stable-Diffusion",live=True, preprocess=True)
|
54 |
|
55 |
proc1=gr.Interface.load(f"models/{model_1}",live=False,preprocess=True, postprocess=False)
|
56 |
proc2=gr.Interface.load(f"models/{model_2}",live=False,preprocess=True, postprocess=False)
|
|
|
141 |
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个模型,一次集齐</h1><center>""")
|
146 |
+
gr.Markdown("""<center><h4>爽歪歪</h4><center>""")
|
147 |
+
with gr.Accordion("使用说明",open=False):
|
|
|
148 |
with gr.Tab("Description"):
|
149 |
gr.Markdown("""<center>
|
150 |
+
<h4>在第一个输入框内填写你想画的内容,然后点击完善,第二个输入框会自动出现经过完善后的提示词。然后点击开始,下面的20个模型就开始为你疯狂了~<br>
|
|
|
|
|
151 |
<br>
|
152 |
Images will cancel loading after 1 minute to preserve the quality of the queue.<br>
|
153 |
Simply Click "Launch" again to try loading the incomplete images.<br>
|
|
|
230 |
with gr.Box(visible=True) as timo:
|
231 |
with gr.Row():
|
232 |
with gr.Column():
|
233 |
+
input_text=gr.Textbox(label="你的提示词")
|
234 |
+
prompt=gr.Textbox(label="完善后的提示词",visible=True)
|
235 |
with gr.Column():
|
236 |
+
see_prompts=gr.Button("完善")
|
237 |
with gr.Row():
|
238 |
+
run=gr.Button("开始")
|
239 |
+
clear_btn=gr.Button("清除")
|
240 |
with gr.Row():
|
241 |
output1=gr.Image(label=(f"{model_1}"),visible=True)
|
242 |
output2=gr.Image(label=(f"{model_2}"),visible=True)
|