Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,283 +1,313 @@
|
|
1 |
import gradio as gr
|
2 |
-
import os
|
3 |
import sys
|
4 |
from pathlib import Path
|
5 |
-
|
6 |
-
models = [
|
7 |
-
"johnslegers/epic-diffusion-v1.1",
|
8 |
-
"andite/anything-v4.0",
|
9 |
-
"runwayml/stable-diffusion-v1-5",
|
10 |
-
"claudfuen/photorealistic-fuen-v1",
|
11 |
-
"naclbit/trinart_stable_diffusion_v2",
|
12 |
-
"nitrosocke/Arcane-Diffusion",
|
13 |
-
"nitrosocke/archer-diffusion",
|
14 |
-
"nitrosocke/elden-ring-diffusion",
|
15 |
-
"nitrosocke/redshift-diffusion",
|
16 |
-
"nitrosocke/spider-verse-diffusion",
|
17 |
-
"nitrosocke/mo-di-diffusion",
|
18 |
-
"nitrosocke/classic-anim-diffusion",
|
19 |
-
"dreamlike-art/dreamlike-diffusion-1.0",
|
20 |
-
"dreamlike-art/dreamlike-photoreal-2.0",
|
21 |
-
"wavymulder/wavyfusion",
|
22 |
-
"wavymulder/Analog-Diffusion",
|
23 |
-
"prompthero/midjourney-v4-diffusion",
|
24 |
-
"prompthero/openjourney",
|
25 |
-
"dallinmackay/Van-Gogh-diffusion",
|
26 |
-
"hakurei/waifu-diffusion",
|
27 |
-
"DGSpitzer/Cyberpunk-Anime-Diffusion",
|
28 |
-
"Fictiverse/Stable_Diffusion_BalloonArt_Model",
|
29 |
-
"dallinmackay/Tron-Legacy-diffusion",
|
30 |
-
"AstraliteHeart/pony-diffusion",
|
31 |
-
"nousr/robo-diffusion",
|
32 |
-
"CompVis/stable-diffusion-v1-4",
|
33 |
-
|
34 |
-
]
|
35 |
-
current_model = models[0]
|
36 |
-
|
37 |
-
text_gen1=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
|
38 |
-
text_gen2=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
|
39 |
-
text_gen3=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
|
40 |
-
text_gen4=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
|
41 |
-
text_gen5=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
|
42 |
-
text_gen6=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
|
43 |
-
text_gen7=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
|
44 |
-
text_gen8=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
|
45 |
-
|
46 |
-
models2=[
|
47 |
-
gr.Interface.load(f"models/{models[0]}",live=True,preprocess=True),
|
48 |
-
gr.Interface.load(f"models/{models[1]}",live=True,preprocess=True),
|
49 |
-
gr.Interface.load(f"models/{models[2]}",live=True,preprocess=True),
|
50 |
-
gr.Interface.load(f"models/{models[3]}",live=True,preprocess=True),
|
51 |
-
gr.Interface.load(f"models/{models[4]}",live=True,preprocess=True),
|
52 |
-
gr.Interface.load(f"models/{models[5]}",live=True,preprocess=True),
|
53 |
-
gr.Interface.load(f"models/{models[6]}",live=True,preprocess=True),
|
54 |
-
gr.Interface.load(f"models/{models[7]}",live=True,preprocess=True),
|
55 |
-
gr.Interface.load(f"models/{models[8]}",live=True,preprocess=True),
|
56 |
-
gr.Interface.load(f"models/{models[9]}",live=True,preprocess=True),
|
57 |
-
gr.Interface.load(f"models/{models[10]}",live=True,preprocess=True),
|
58 |
-
gr.Interface.load(f"models/{models[11]}",live=True,preprocess=True),
|
59 |
-
gr.Interface.load(f"models/{models[12]}",live=True,preprocess=True),
|
60 |
-
gr.Interface.load(f"models/{models[13]}",live=True,preprocess=True),
|
61 |
-
gr.Interface.load(f"models/{models[14]}",live=True,preprocess=True),
|
62 |
-
gr.Interface.load(f"models/{models[15]}",live=True,preprocess=True),
|
63 |
-
gr.Interface.load(f"models/{models[16]}",live=True,preprocess=True),
|
64 |
-
gr.Interface.load(f"models/{models[17]}",live=True,preprocess=True),
|
65 |
-
gr.Interface.load(f"models/{models[18]}",live=True,preprocess=True),
|
66 |
-
gr.Interface.load(f"models/{models[19]}",live=True,preprocess=True),
|
67 |
-
gr.Interface.load(f"models/{models[20]}",live=True,preprocess=True),
|
68 |
-
gr.Interface.load(f"models/{models[21]}",live=True,preprocess=True),
|
69 |
-
gr.Interface.load(f"models/{models[22]}",live=True,preprocess=True),
|
70 |
-
gr.Interface.load(f"models/{models[23]}",live=True,preprocess=True),
|
71 |
-
gr.Interface.load(f"models/{models[24]}",live=True,preprocess=True),
|
72 |
-
gr.Interface.load(f"models/{models[25]}",live=True,preprocess=True),
|
73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
]
|
75 |
|
76 |
-
|
77 |
-
def text_it1(inputs,text_gen1=text_gen1):
|
78 |
-
go_t1=text_gen1(inputs)
|
79 |
-
return(go_t1)
|
80 |
-
def text_it2(inputs,text_gen2=text_gen2):
|
81 |
-
go_t2=text_gen2(inputs)
|
82 |
-
return(go_t2)
|
83 |
-
def text_it3(inputs,text_gen3=text_gen3):
|
84 |
-
go_t3=text_gen3(inputs)
|
85 |
-
return(go_t3)
|
86 |
-
def text_it4(inputs,text_gen4=text_gen4):
|
87 |
-
go_t4=text_gen4(inputs)
|
88 |
-
return(go_t4)
|
89 |
-
def text_it5(inputs,text_gen5=text_gen5):
|
90 |
-
go_t5=text_gen5(inputs)
|
91 |
-
return(go_t5)
|
92 |
-
def text_it6(inputs,text_gen6=text_gen6):
|
93 |
-
go_t6=text_gen6(inputs)
|
94 |
-
return(go_t6)
|
95 |
-
def text_it7(inputs,text_gen7=text_gen7):
|
96 |
-
go_t7=text_gen7(inputs)
|
97 |
-
return(go_t7)
|
98 |
-
def text_it8(inputs,text_gen8=text_gen8):
|
99 |
-
go_t8=text_gen8(inputs)
|
100 |
-
return(go_t8)
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
def set_model(current_model):
|
105 |
-
current_model = models[current_model]
|
106 |
-
return gr.update(label=(f"{current_model}")),gr.update(label=(f"{current_model}")),gr.update(label=(f"{current_model}")),gr.update(label=(f"{current_model}")),gr.update(label=(f"{current_model}")),gr.update(label=(f"{current_model}")),gr.update(label=(f"{current_model}")),gr.update(label=(f"{current_model}")),
|
107 |
-
|
108 |
|
109 |
-
|
110 |
-
proc1=models2[model_choice]
|
111 |
-
output1=proc1(inputs)
|
112 |
-
return(output1)
|
113 |
-
def send_it2(inputs, model_choice):
|
114 |
-
proc2=models2[model_choice]
|
115 |
-
output2=proc2(inputs)
|
116 |
-
return(output2)
|
117 |
-
def send_it3(inputs, model_choice):
|
118 |
-
proc3=models2[model_choice]
|
119 |
-
output3=proc3(inputs)
|
120 |
-
return(output3)
|
121 |
-
def send_it4(inputs, model_choice):
|
122 |
-
proc4=models2[model_choice]
|
123 |
-
output4=proc4(inputs)
|
124 |
-
return(output4)
|
125 |
-
def send_it5(inputs, model_choice):
|
126 |
-
proc5=models2[model_choice]
|
127 |
-
output5=proc5(inputs)
|
128 |
-
return(output5)
|
129 |
-
def send_it6(inputs, model_choice):
|
130 |
-
proc6=models2[model_choice]
|
131 |
-
output6=proc6(inputs)
|
132 |
-
return(output6)
|
133 |
-
def send_it7(inputs, model_choice):
|
134 |
-
proc7=models2[model_choice]
|
135 |
-
output7=proc7(inputs)
|
136 |
-
return(output7)
|
137 |
-
def send_it8(inputs, model_choice):
|
138 |
-
proc8=models2[model_choice]
|
139 |
-
output8=proc8(inputs)
|
140 |
-
return(output8)
|
141 |
-
css=""""""
|
142 |
|
|
|
|
|
|
|
|
|
|
|
143 |
|
144 |
-
with gr.Blocks(css=css) as myface:
|
145 |
-
gr.HTML("""<!DOCTYPE html>
|
146 |
-
<html lang="en">
|
147 |
-
<head>
|
148 |
-
<meta charset="utf-8" />
|
149 |
-
<meta name="twitter:card" content="player"/>
|
150 |
-
<meta name="twitter:site" content=""/>
|
151 |
-
<meta name="twitter:player" content="https://omnibus-maximum-multiplier-places.hf.space"/>
|
152 |
-
<meta name="twitter:player:stream" content="https://omnibus-maximum-multiplier-places.hf.space"/>
|
153 |
-
<meta name="twitter:player:width" content="100%"/>
|
154 |
-
<meta name="twitter:player:height" content="600"/>
|
155 |
-
<meta property="og:title" content="Embedded Live Viewer"/>
|
156 |
-
<meta property="og:description" content="Tweet Genie - A Huggingface Space"/>
|
157 |
-
<meta property="og:image" content="https://cdn.glitch.global/80dbe92e-ce75-44af-84d5-74a2e21e9e55/omnicard.png?v=1676772531627"/>
|
158 |
-
<!--<meta http-equiv="refresh" content="0; url=https://huggingface.co/spaces/corbt/tweet-genie">-->
|
159 |
|
160 |
-
|
|
|
161 |
|
162 |
-
</html>
|
163 |
-
""")
|
164 |
-
with gr.Row():
|
165 |
-
with gr.Tab("Title"):
|
166 |
-
gr.HTML(""" <title>Maximum Multiplier</title><div style="text-align: center; max-width: 1500px; margin: 0 auto;">
|
167 |
-
<h1>Everything</h1>
|
168 |
-
<br><br><h4>It just does a lot of things at the same time</h4>
|
169 |
-
|
170 |
-
""")
|
171 |
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
</div>""")
|
178 |
|
179 |
-
with gr.Tab("Tools"):
|
180 |
-
with gr.Tab("View"):
|
181 |
-
with gr.Row():
|
182 |
-
with gr.Column(style="width=50%, height=70%"):
|
183 |
-
gr.Pil(label="Crop")
|
184 |
-
with gr.Column(style="width=50%, height=70%"):
|
185 |
-
gr.Pil(label="Crop")
|
186 |
-
|
187 |
-
|
188 |
-
with gr.Tab("Draw"):
|
189 |
-
with gr.Column(style="width=50%, height=70%"):
|
190 |
-
gr.Pil(label="Crop")
|
191 |
-
with gr.Column(style="width=50%, height=70%"):
|
192 |
-
gr.Pil(label="Draw")
|
193 |
-
|
194 |
-
|
195 |
-
gr.ImagePaint(label="Draw")
|
196 |
-
|
197 |
-
with gr.Tab("Text"):
|
198 |
-
with gr.Row():
|
199 |
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
|
204 |
-
with gr.Column(scale=50):
|
205 |
-
gr.Textbox(label="", lines=8, interactive=True)
|
206 |
|
207 |
-
|
208 |
-
|
209 |
|
210 |
-
|
211 |
-
gr.ColorPicker(label="Color", interactive=True)
|
212 |
-
|
213 |
|
214 |
-
with gr.Column(scale=50):
|
215 |
-
gr.ImagePaint(label="Draw", interactive=True)
|
216 |
-
|
217 |
with gr.Row():
|
218 |
-
with gr.Column():
|
219 |
-
input_text=gr.Textbox(label="Short Prompt",lines=2)
|
220 |
-
#Model selection dropdown
|
221 |
-
model_name1 = gr.Dropdown(show_label=False, choices=[m for m in models], type="index", value=current_model, interactive=True)
|
222 |
-
with gr.Column():
|
223 |
-
use_short=gr.Button("Use Short Prompt")
|
224 |
-
see_prompts=gr.Button("Generate Magic Prompts")
|
225 |
-
run=gr.Button("Launch")
|
226 |
-
with gr.Tab("Main"):
|
227 |
with gr.Row():
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
|
|
|
|
|
|
|
|
|
|
232 |
with gr.Row():
|
233 |
-
|
234 |
-
|
235 |
-
magic3=gr.Textbox(lines=4)
|
236 |
-
magic4=gr.Textbox(lines=4)
|
237 |
-
with gr.Row():
|
238 |
-
output5=gr.Image(label=(f"{current_model}"))
|
239 |
-
output6=gr.Image(label=(f"{current_model}"))
|
240 |
-
output7=gr.Image(label=(f"{current_model}"))
|
241 |
-
output8=gr.Image(label=(f"{current_model}"))
|
242 |
-
with gr.Row():
|
243 |
-
magic5=gr.Textbox(lines=4)
|
244 |
-
magic6=gr.Textbox(lines=4)
|
245 |
-
magic7=gr.Textbox(lines=4)
|
246 |
-
magic8=gr.Textbox(lines=4)
|
247 |
-
|
248 |
-
def short_prompt(inputs):
|
249 |
-
return(inputs)
|
250 |
-
|
251 |
-
model_name1.change(set_model,inputs=model_name1,outputs=[output1,output2,output3,output4,output5,output6,output7,output8])
|
252 |
-
|
253 |
-
run.click(send_it1, inputs=[magic1, model_name1], outputs=[output1])
|
254 |
-
run.click(send_it2, inputs=[magic2, model_name1], outputs=[output2])
|
255 |
-
run.click(send_it3, inputs=[magic3, model_name1], outputs=[output3])
|
256 |
-
run.click(send_it4, inputs=[magic4, model_name1], outputs=[output4])
|
257 |
-
run.click(send_it5, inputs=[magic5, model_name1], outputs=[output5])
|
258 |
-
run.click(send_it6, inputs=[magic6, model_name1], outputs=[output6])
|
259 |
-
run.click(send_it7, inputs=[magic7, model_name1], outputs=[output7])
|
260 |
-
run.click(send_it8, inputs=[magic8, model_name1], outputs=[output8])
|
261 |
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
|
282 |
myface.queue(concurrency_count=200)
|
283 |
myface.launch(inline=True, show_api=False, max_threads=400)
|
|
|
1 |
import gradio as gr
|
2 |
+
import os
|
3 |
import sys
|
4 |
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
+
models = [
|
7 |
+
{"name": "π₯ All Purpose", "url": "dreamlike-art/dreamlike-diffusion-1.0"},
|
8 |
+
{"name": "π₯ Anime", "url": "dreamlike-art/dreamlike-anime-1.0"},
|
9 |
+
{"name": "π₯ Realistic Photo", "url": "dreamlike-art/dreamlike-photoreal-2.0"},
|
10 |
+
{"name": "β€β€β€ Favorite Models β€β€β€", "url": "dreamlike-art/dreamlike-diffusion-1.0"},
|
11 |
+
{"name": "Anything 5.0 (Anime)", "url": "stablediffusionapi/anything-v5"},
|
12 |
+
{"name": "Anything 4.0 (Anime)", "url": "andite/anything-v4.0"},
|
13 |
+
{"name": "Anything Else 5 (Anime)", "url": "stablediffusionapi/anything-v5"},
|
14 |
+
{"name": "Abyss Orange Mix 2 (Anime)", "url": "WarriorMama777/AbyssOrangeMix2"},
|
15 |
+
{"name": "Counterfeit 3.0 (Anime)", "url": "stablediffusionapi/counterfeit-v30"},
|
16 |
+
{"name": "Cool Japan Diffusion (Anime)", "url": "aipicasso/cool-japan-diffusion-2-1-2"},
|
17 |
+
{"name": "Cyberrealistic (3D, Photoreal)", "url": "stablediffusionapi/cyberrealistic"},
|
18 |
+
{"name": "Deliberate (3D, Photoreal)", "url": "Masagin/Deliberate"},
|
19 |
+
{"name": "Dreamlike Art", "url": "dreamlike-art/dreamlike-diffusion-1.0"},
|
20 |
+
{"name": "Dreamlike Anime", "url": "dreamlike-art/dreamlike-anime-1.0"},
|
21 |
+
{"name": "Dreamlike Photoreal", "url": "dreamlike-art/dreamlike-photoreal-2.0"},
|
22 |
+
{"name": "Dreamshaper (Anime, Photoreal)", "url": "Lykon/DreamShaper"},
|
23 |
+
{"name": "DucHaiten Art (3D Characters)", "url": "DucHaiten/DucHaitenAIart"},
|
24 |
+
{"name": "DucHaiten DreamWorld", "url": "DucHaiten/DucHaitenDreamWorld"},
|
25 |
+
{"name": "Epic Diffusion (3D, Photoreal)", "url": "johnslegers/epic-diffusion"},
|
26 |
+
{"name": "EpicMix Realism (Art & Anime)", "url": "Duskfallcrew/EpicMix_Realism"},
|
27 |
+
{"name": "Midjourney 4.0 (Art & Anime)", "url": "flax/midjourney-v4-diffusion"},
|
28 |
+
{"name": "Midjourney 4.1 (Art & Anime)", "url": "Joeythemonster/anything-midjourney-v-4-1"},
|
29 |
+
{"name": "Never Ending Dream 2 (Art & Anime)", "url": "luongphamit/NeverEnding-Dream2"},
|
30 |
+
{"name": "Openjourney 4 (Art & Anime)", "url": "prompthero/openjourney-v4"},
|
31 |
+
{"name": "Protogen X 3.4 (Photoreal)", "url": "darkstorm2150/Protogen_x3.4_Official_Release"},
|
32 |
+
{"name": "Protogen X 5.8 (Photoreal)", "url": "darkstorm2150/Protogen_x5.8_Official_Release"},
|
33 |
+
{"name": "Protogen 2.2 (Anime)", "url": "darkstorm2150/Protogen_v2.2_Official_Release"},
|
34 |
+
{"name": "Picasso Diffusion 1.1 (Anime)", "url": "aipicasso/picasso-diffusion-1-1"},
|
35 |
+
{"name": "Realistic Vision 1.4 (3D, Photoreal)", "url": "SG161222/Realistic_Vision_V1.4"},
|
36 |
+
{"name": "Rev Animated (Anime)", "url": "LottePeisch/RevAnimated-Diffusers"},
|
37 |
+
{"name": "π© Best ART MODELS π©π©π©", "url": "dreamlike-art/dreamlike-diffusion-1.0"},
|
38 |
+
{"name": "Alice in Diffusion Land", "url": "Guizmus/SDArt_AliceInDiffusionLand"},
|
39 |
+
{"name": "Alt Clip", "url": "BAAI/AltCLIP"},
|
40 |
+
{"name": "Anything Midjourney 4.1", "url": "Joeythemonster/anything-midjourney-v-4-1"},
|
41 |
+
{"name": "Chaos and Order", "url": "Guizmus/SDArt_ChaosAndOrder768"},
|
42 |
+
{"name": "Chilloutclara", "url": "Fred99774/chilloutvlara"},
|
43 |
+
{"name": "Comic Diffusion", "url": "ogkalu/Comic-Diffusion"},
|
44 |
+
{"name": "Cosmic Horros 768", "url": "Guizmus/SDArt_cosmichorrors768"},
|
45 |
+
{"name": "Cosmic Horros", "url": "Guizmus/SDArt_cosmichorrors"},
|
46 |
+
{"name": "DGSpitzer", "url": "DGSpitzer/DGSpitzer-Art-Diffusion"},
|
47 |
+
{"name": "Dreamlike Diffusion", "url": "dreamlike-art/dreamlike-diffusion-1.0"},
|
48 |
+
{"name": "Dungeons and Diffusion", "url": "0xJustin/Dungeons-and-Diffusion"},
|
49 |
+
{"name": "Elden Ring", "url": "nitrosocke/elden-ring-diffusion"},
|
50 |
+
{"name": "Epic Diffusion 1.1", "url": "johnslegers/epic-diffusion-v1.1"},
|
51 |
+
{"name": "Epic Diffusion", "url": "johnslegers/epic-diffusion"},
|
52 |
+
{"name": "EpicMix Realism", "url": "Duskfallcrew/EpicMix_Realism"},
|
53 |
+
{"name": "Fantasy Mix", "url": "theintuitiveye/FantasyMix"},
|
54 |
+
{"name": "Girl New 1", "url": "Fred99774/girlnew1"},
|
55 |
+
{"name": "Lit 6B", "url": "hakurei/lit-6B"},
|
56 |
+
{"name": "Luna Diffusion", "url": "proximasanfinetuning/luna-diffusion"},
|
57 |
+
{"name": "Midjourney 4.0", "url": "flax/midjourney-v4-diffusion"},
|
58 |
+
{"name": "Midjourney 4.1", "url": "Joeythemonster/anything-midjourney-v-4-1"},
|
59 |
+
{"name": "Mo-Di Diffusion", "url": "nitrosocke/mo-di-diffusion"},
|
60 |
+
{"name": "Nitro Diffusion", "url": "nitrosocke/Nitro-Diffusion"},
|
61 |
+
{"name": "Openjourney V2", "url": "prompthero/openjourney-v2"},
|
62 |
+
{"name": "Openjourney", "url": "prompthero/openjourney"},
|
63 |
+
{"name": "Seek Art Mega", "url": "coreco/seek.art_MEGA"},
|
64 |
+
{"name": "Something", "url": "Guizmus/SDArt_something"},
|
65 |
+
{"name": "Spider Verse diffusion", "url": "nitrosocke/spider-verse-diffusion"},
|
66 |
+
{"name": "Vintedois 1.0", "url": "22h/vintedois-diffusion-v0-1"},
|
67 |
+
{"name": "Vintedois 2.0", "url": "22h/vintedois-diffusion-v0-2"},
|
68 |
+
{"name": "π© Best ART STYLES π©π©π©", "url": "joachimsallstrom/Double-Exposure-Diffusion"},
|
69 |
+
{"name": "Balloon Art", "url": "Fictiverse/Stable_Diffusion_BalloonArt_Model"},
|
70 |
+
{"name": "Double Exposure Diffusion", "url": "joachimsallstrom/Double-Exposure-Diffusion"},
|
71 |
+
{"name": "Fluid Art", "url": "Fictiverse/Stable_Diffusion_FluidArt_Model"},
|
72 |
+
{"name": "GTA5 Artwork Diffusion", "url": "ItsJayQz/GTA5_Artwork_Diffusion"},
|
73 |
+
{"name": "Marvel WhatIf Diffusion", "url": "ItsJayQz/Marvel_WhatIf_Diffusion"},
|
74 |
+
{"name": "Naruto Diffuser", "url": "lambdalabs/sd-naruto-diffusers"},
|
75 |
+
{"name": "Papercut", "url": "Fictiverse/Stable_Diffusion_PaperCut_Model"},
|
76 |
+
{"name": "Pokemon Diffuser", "url": "lambdalabs/sd-pokemon-diffusers"},
|
77 |
+
{"name": "Synthwave Punk 2", "url": "ItsJayQz/SynthwavePunk-v2"},
|
78 |
+
{"name": "Valorant Diffusion", "url": "ItsJayQz/Valorant_Diffusion"},
|
79 |
+
{"name": "Van Gogh Diffusion", "url": "dallinmackay/Van-Gogh-diffusion"},
|
80 |
+
{"name": "Vectorartz Diffusion", "url": "coder119/Vectorartz_Diffusion"},
|
81 |
+
{"name": "VoxelArt", "url": "Fictiverse/Stable_Diffusion_VoxelArt_Model"},
|
82 |
+
{"name": "π© Best ANIME MODELS π©π©π©", "url": "dreamlike-art/dreamlike-anime-1.0"},
|
83 |
+
{"name": "7 Pa", "url": "AIARTCHAN/7pa"},
|
84 |
+
{"name": "A Certain Model", "url": "JosephusCheung/ACertainModel"},
|
85 |
+
{"name": "A Certain Thing", "url": "JosephusCheung/ACertainThing"},
|
86 |
+
{"name": "A Certainity", "url": "JosephusCheung/ACertainty"},
|
87 |
+
{"name": "Abyss Hell Hero", "url": "AIARTCHAN/AbyssHellHero"},
|
88 |
+
{"name": "Abyss Maple 3", "url": "AIARTCHAN/AbyssMapleVer3"},
|
89 |
+
{"name": "Abyss Orange Mix 2", "url": "WarriorMama777/AbyssOrangeMix2"},
|
90 |
+
{"name": "Abyss Orange Mix", "url": "WarriorMama777/AbyssOrangeMix"},
|
91 |
+
{"name": "AbyssHell 3", "url": "AIARTCHAN/AbyssHellVer3"},
|
92 |
+
{"name": "All 526 Animated", "url": "stablediffusionapi/all-526-animated"},
|
93 |
+
{"name": "Anidosmix 3", "url": "AIARTCHAN/anidosmixV2"},
|
94 |
+
{"name": "Anime Kawai Diffusion", "url": "Ojimi/anime-kawai-diffusion"},
|
95 |
+
{"name": "Anireal 3D V2", "url": "circulus/sd-anireal-3d-v2"},
|
96 |
+
{"name": "AnyLORA", "url": "kubanemil/AnyLORA"},
|
97 |
+
{"name": "Anything 2.1", "url": "swl-models/anything-v2.1"},
|
98 |
+
{"name": "Anything 3.0 Light", "url": "mm00/anything-v3.0-light"},
|
99 |
+
{"name": "Anything 3.0", "url": "Linaqruf/anything-v3.0"},
|
100 |
+
{"name": "Anything 3.1", "url": "cag/anything-v3-1"},
|
101 |
+
{"name": "Anything 3X", "url": "iZELX1/Anything-V3-X"},
|
102 |
+
{"name": "Anything 4.0", "url": "andite/anything-v4.0"},
|
103 |
+
{"name": "Anything 5.0", "url": "stablediffusionapi/anything-v5"},
|
104 |
+
{"name": "Anything Else 4", "url": "stablediffusionapi/anythingelse-v4"},
|
105 |
+
{"name": "Anything Else 5", "url": "stablediffusionapi/anything-v5"},
|
106 |
+
{"name": "Arcane Diffusion", "url": "nitrosocke/Arcane-Diffusion"},
|
107 |
+
{"name": "Archer Diffusion", "url": "nitrosocke/archer-diffusion"},
|
108 |
+
{"name": "Asian Mix", "url": "D1b4l4p/AsianMix"},
|
109 |
+
{"name": "Blood Orange Mix", "url": "WarriorMama777/BloodOrangeMix"},
|
110 |
+
{"name": "CamelliaMix 2.5D","url": "stablediffusionapi/camelliamix25d"},
|
111 |
+
{"name": "CamelliaMix Line","url": "stablediffusionapi/camelliamixline"},
|
112 |
+
{"name": "CamelliaMix","url": "Powidl43/CamelliaMix"},
|
113 |
+
{"name": "Cetusmix", "url": "stablediffusionapi/cetusmix"},
|
114 |
+
{"name": "Chik Mix", "url": "stablediffusionapi/chikmix"},
|
115 |
+
{"name": "Chikmix", "url": "stablediffusionapi/chikmix"},
|
116 |
+
{"name": "Chillout App Factory","url": "stablediffusionapi/chillout-app-factory"},
|
117 |
+
{"name": "Classic Anime", "url": "nitrosocke/classic-anim-diffusion"},
|
118 |
+
{"name": "Cool Japan Diffusion 2.1.2", "url": "aipicasso/cool-japan-diffusion-2-1-2"},
|
119 |
+
{"name": "Cosmic Babes", "url": "stablediffusionapi/cosmic-babes"},
|
120 |
+
{"name": "Counterfeit 1.0", "url": "gsdf/counterfeit-v1.0"},
|
121 |
+
{"name": "Counterfeit 2", "url": "gsdf/Counterfeit-V2.0"},
|
122 |
+
{"name": "Counterfeit 2.0", "url": "gsdf/Counterfeit-V2.0"},
|
123 |
+
{"name": "Counterfeit 3.0", "url": "stablediffusionapi/counterfeit-v30"},
|
124 |
+
{"name": "CuteSexyRobutts", "url": "andite/cutesexyrobutts-diffusion"},
|
125 |
+
{"name": "CyberPunk Anime", "url": "DGSpitzer/Cyberpunk-Anime-Diffusion"},
|
126 |
+
{"name": "Dark Sushi Mix", "url": "stablediffusionapi/dark-sushi-mix"},
|
127 |
+
{"name": "Dash Sushi 25d", "url": "stablediffusionapi/dark-sushi-25d"},
|
128 |
+
{"name": "Dreamlike Anime", "url": "dreamlike-art/dreamlike-anime-1.0"},
|
129 |
+
{"name": "DucHaiten Anime", "url": "DucHaiten/DucHaitenAnime"},
|
130 |
+
{"name": "Eerie Orange Mix", "url": "WarriorMama777/EerieOrangeMix"},
|
131 |
+
{"name": "Eimis Anime Diffusion", "url": "eimiss/EimisAnimeDiffusion_1.0v"},
|
132 |
+
{"name": "Ghibli Diffusion", "url": "nitrosocke/Ghibli-Diffusion"},
|
133 |
+
{"name": "GrapeFruit", "url": "iZELX1/Grapefruit"},
|
134 |
+
{"name": "GuoFeng 3", "url": "xiaolxl/GuoFeng3"},
|
135 |
+
{"name": "Guweiz Diffusion", "url": "andite/guweiz-diffusion"},
|
136 |
+
{"name": "Hiten Diffusion", "url": "andite/hiten-diffusion"},
|
137 |
+
{"name": "Icomix 2", "url": "stablediffusionapi/icomix-2"},
|
138 |
+
{"name": "InkPunk Diffusion", "url": "Envvi/Inkpunk-Diffusion"},
|
139 |
+
{"name": "Mama Orange Mixs", "url": "WarriorMama777/OrangeMixs"},
|
140 |
+
{"name": "Mashuu Diffusion", "url": "andite/mashuu-diffusion"},
|
141 |
+
{"name": "Meina Alter", "url": "stablediffusionapi/meinaalter"},
|
142 |
+
{"name": "Meina Pastel", "url": "stablediffusionapi/meinapastel"},
|
143 |
+
{"name": "MeinaMix 7", "url": "Nacholmo/meinamixv7-diffusers"},
|
144 |
+
{"name": "Mignon Diffusion", "url": "andite/mignon-diffusion"},
|
145 |
+
{"name": "MikaPikazo Diffusion", "url": "andite/mikapikazo-diffusion"},
|
146 |
+
{"name": "Mikapikazo", "url": "andite/mikapikazo-diffusion"},
|
147 |
+
{"name": "Mix Pro V4", "url": "AIARTCHAN/MIX-Pro-V4"},
|
148 |
+
{"name": "NeverEnding-Dream", "url": "Lykon/NeverEnding-Dream"},
|
149 |
+
{"name": "Openjourney 4", "url": "prompthero/openjourney-v4"},
|
150 |
+
{"name": "OpenNiji", "url": "Korakoe/OpenNiji"},
|
151 |
+
{"name": "Pastel Mix", "url": "andite/pastel-mix"},
|
152 |
+
{"name": "Picasso Diffusion 1.1", "url": "aipicasso/picasso-diffusion-1-1"},
|
153 |
+
{"name": "Piromizu Diffusion", "url": "andite/piromizu-diffusion"},
|
154 |
+
{"name": "Protogen 2.2", "url": "darkstorm2150/Protogen_v2.2_Official_Release"},
|
155 |
+
{"name": "Protogen Infinity", "url": "darkstorm2150/Protogen_Infinity_Official_Release"},
|
156 |
+
{"name": "Protogen X 3.4", "url": "darkstorm2150/Protogen_x3.4_Official_Release"},
|
157 |
+
{"name": "Rev Anim", "url": "stablediffusionapi/rev-anim"},
|
158 |
+
{"name": "Rev Animated", "url": "coreml/coreml-ReV-Animated"},
|
159 |
+
{"name": "Rev Animated", "url": "LottePeisch/RevAnimated-Diffusers"},
|
160 |
+
{"name": "Something V 2.2","url": "NoCrypt/SomethingV2_2"},
|
161 |
+
{"name": "Something V2","url": "NoCrypt/SomethingV2"},
|
162 |
+
{"name": "Three Delicacy", "url": "stablediffusionapi/three-delicacy"},
|
163 |
+
{"name": "Three Delicacy wonto", "url": "stablediffusionapi/three-delicacy-wonto"},
|
164 |
+
{"name": "TMND mix", "url": "stablediffusionapi/tmnd-mix"},
|
165 |
+
{"name": "Waifu Diffusion", "url": "hakurei/waifu-diffusion"},
|
166 |
+
{"name": "π© Best REALISTIC MODELS π©π©π©", "url": "dreamlike-art/dreamlike-photoreal-2.0"},
|
167 |
+
{"name": "AmiIReal", "url": "stablediffusionapi/amireal"},
|
168 |
+
{"name": "Analog Diffusion", "url": "wavymulder/Analog-Diffusion"},
|
169 |
+
{"name": "Circulus 2.8", "url": "circulus/sd-photoreal-v2.8"},
|
170 |
+
{"name": "Circulus Photoreal V2", "url": "circulus/sd-photoreal-real-v2"},
|
171 |
+
{"name": "Claudfuen 1", "url": "claudfuen/photorealistic-fuen-v1"},
|
172 |
+
{"name": "Collage Diffusion", "url": "wavymulder/collage-diffusion"},
|
173 |
+
{"name": "Cyberrealistic", "url": "stablediffusionapi/cyberrealistic"},
|
174 |
+
{"name": "Dreamlike Photoreal", "url": "dreamlike-art/dreamlike-photoreal-2.0"},
|
175 |
+
{"name": "Dreamful 2", "url": "Hius/DreamFul-V2"},
|
176 |
+
{"name": "GakkiMix768", "url": "Sa1i/gakki-mix-768"},
|
177 |
+
{"name": "Grimoeresigils", "url": "ECarbenia/grimoiresigils"},
|
178 |
+
{"name": "HARDBlend", "url": "theintuitiveye/HARDblend"},
|
179 |
+
{"name": "HassanBlend 1.4", "url": "hassanblend/hassanblend1.4"},
|
180 |
+
{"name": "HassanBlend 1.5.1.2", "url": "hassanblend/HassanBlend1.5.1.2"},
|
181 |
+
{"name": "Lomo Diffusion", "url": "wavymulder/lomo-diffusion"},
|
182 |
+
{"name": "Model Shoot", "url": "wavymulder/modelshoot"},
|
183 |
+
{"name": "Portrait Plus", "url": "wavymulder/portraitplus"},
|
184 |
+
{"name": "QuinceMix", "url": "Hemlok/QuinceMix"},
|
185 |
+
{"name": "Realistic Vision 1.4", "url": "SG161222/Realistic_Vision_V1.4"},
|
186 |
+
{"name": "The Ally", "url": "stablediffusionapi/the-ally"},
|
187 |
+
{"name": "Timeless Diffusion", "url": "wavymulder/timeless-diffusion"},
|
188 |
+
{"name": "UltraSkin", "url": "VegaKH/Ultraskin"},
|
189 |
+
{"name": "Wavyfusion", "url": "wavymulder/wavyfusion"},
|
190 |
+
{"name": "π© Best SEMI-REALISTIC MODELS π©π©π©", "url": "stablediffusionapi/all-526"},
|
191 |
+
{"name": "All 526", "url": "stablediffusionapi/all-526"},
|
192 |
+
{"name": "All 526 animated", "url": "stablediffusionapi/all-526-animated"},
|
193 |
+
{"name": "Circulus Semi Real 2", "url": "circulus/sd-photoreal-semi-v2"},
|
194 |
+
{"name": "Semi Real Mix", "url": "robotjung/SemiRealMix"},
|
195 |
+
{"name": "SpyBG", "url": "stablediffusionapi/spybg"},
|
196 |
+
{"name": "π© STABLE DIFFUSION MODELS π©π©π©", "url": "stabilityai/stable-diffusion-2-1"},
|
197 |
+
{"name": "Stable Diffusion 1.4","url": "CompVis/stable-diffusion-v1-4"},
|
198 |
+
{"name": "Stable Diffusion 1.5","url": "runwayml/stable-diffusion-v1-5"},
|
199 |
+
{"name": "Stable Diffusion 2.1","url": "stabilityai/stable-diffusion-2-1"},
|
200 |
+
{"name": "Stable Diffusion 2.1 Base","url": "stabilityai/stable-diffusion-2-1-base"},
|
201 |
+
{"name": "Stable Diffusion 2.1 Unclip","url": "stabilityai/stable-diffusion-2-1-unclip"},
|
202 |
+
{"name": "π© Best SCI FI MODELS π©π©π©", "url": "nitrosocke/Future-Diffusion"},
|
203 |
+
{"name": "Future Diffusion", "url": "nitrosocke/Future-Diffusion"},
|
204 |
+
{"name": "JWST Deep Space Diffusion", "url": "dallinmackay/JWST-Deep-Space-diffusion"},
|
205 |
+
{"name": "Robo Diffusion 3 Base", "url": "nousr/robo-diffusion-2-base"},
|
206 |
+
{"name": "Robo Diffusion", "url": "nousr/robo-diffusion"},
|
207 |
+
{"name": "Tron Legacy Diffusion", "url": "dallinmackay/Tron-Legacy-diffusion"},
|
208 |
+
{"name": "π© Best 3D ART MODELS π©π©π©", "url": "DucHaiten/DucHaitenAIart"},
|
209 |
+
{"name": "DucHaiten Art", "url": "DucHaiten/DucHaitenAIart"},
|
210 |
+
{"name": "DucHaiten ClassicAnime", "url": "DucHaiten/DH_ClassicAnime"},
|
211 |
+
{"name": "DucHaiten DreamWorld", "url": "DucHaiten/DucHaitenDreamWorld"},
|
212 |
+
{"name": "DucHaiten Journey", "url": "DucHaiten/DucHaitenJourney"},
|
213 |
+
{"name": "DucHaiten StyleLikeMe", "url": "DucHaiten/DucHaiten-StyleLikeMe"},
|
214 |
+
{"name": "DucHaiten SuperCute", "url": "DucHaiten/DucHaitenSuperCute"},
|
215 |
+
{"name": "Redshift Diffusion 768", "url": "nitrosocke/redshift-diffusion-768"},
|
216 |
+
{"name": "Redshift Diffusion", "url": "nitrosocke/redshift-diffusion"},
|
217 |
]
|
218 |
|
219 |
+
current_model = models[0]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
|
221 |
+
text_gen = gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
|
223 |
+
models2 = []
|
224 |
+
for model in models:
|
225 |
+
model_url = f"models/{model['url']}"
|
226 |
+
loaded_model = gr.Interface.load(model_url, live=True, preprocess=True)
|
227 |
+
models2.append(loaded_model)
|
228 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
|
230 |
+
def text_it(inputs, text_gen=text_gen):
|
231 |
+
return text_gen(inputs)
|
232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
|
234 |
+
def set_model(current_model_index):
|
235 |
+
global current_model
|
236 |
+
current_model = models[current_model_index]
|
237 |
+
return gr.update(value=f"{current_model['name']}")
|
|
|
|
|
238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
|
240 |
+
def send_it(inputs, model_choice):
|
241 |
+
proc = models2[model_choice]
|
242 |
+
return proc(inputs)
|
243 |
|
|
|
|
|
244 |
|
245 |
+
with gr.Blocks() as myface:
|
246 |
+
gr.HTML(
|
247 |
|
248 |
+
)
|
|
|
|
|
249 |
|
|
|
|
|
|
|
250 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
with gr.Row():
|
252 |
+
input_text = gr.Textbox(label="Prompt idea", placeholder="Eg. Eyewear model", lines=1)
|
253 |
+
# Model selection dropdown
|
254 |
+
model_name1 = gr.Dropdown(
|
255 |
+
label="Choose Model",
|
256 |
+
choices=[m["name"] for m in models],
|
257 |
+
type="index",
|
258 |
+
value=current_model["name"],
|
259 |
+
interactive=True,
|
260 |
+
)
|
261 |
with gr.Row():
|
262 |
+
see_prompts = gr.Button("Generate Prompts")
|
263 |
+
run = gr.Button("Generate Images", variant="primary")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
|
265 |
+
with gr.Row():
|
266 |
+
output1 = gr.Image(label="")
|
267 |
+
output2 = gr.Image(label="")
|
268 |
+
output3 = gr.Image(label="")
|
269 |
+
with gr.Row():
|
270 |
+
magic1 = gr.Textbox(label="Generated Prompt", lines=2)
|
271 |
+
magic2 = gr.Textbox(label="Generated Prompt", lines=2)
|
272 |
+
magic3 = gr.Textbox(label="Generated Prompt", lines=2)
|
273 |
+
with gr.Row():
|
274 |
+
output4 = gr.Image(label="")
|
275 |
+
output5 = gr.Image(label="")
|
276 |
+
output6 = gr.Image(label="")
|
277 |
+
with gr.Row():
|
278 |
+
magic4 = gr.Textbox(label="Generated Prompt", lines=2)
|
279 |
+
magic5 = gr.Textbox(label="Generated Prompt", lines=2)
|
280 |
+
magic6 = gr.Textbox(label="Generated Prompt", lines=2)
|
281 |
+
with gr.Row():
|
282 |
+
output7 = gr.Image(label="")
|
283 |
+
output8 = gr.Image(label="")
|
284 |
+
output9 = gr.Image(label="")
|
285 |
+
with gr.Row():
|
286 |
+
magic7 = gr.Textbox(label="Generated Prompt", lines=2)
|
287 |
+
magic8 = gr.Textbox(label="Generated Prompt", lines=2)
|
288 |
+
magic9 = gr.Textbox(label="Generated Prompt", lines=2)
|
289 |
+
|
290 |
+
model_name1.change(set_model, inputs=model_name1, outputs=[output1, output2, output3, output4, output5, output6, output7, output8, output9])
|
291 |
+
|
292 |
+
run.click(send_it, inputs=[magic1, model_name1], outputs=[output1])
|
293 |
+
run.click(send_it, inputs=[magic2, model_name1], outputs=[output2])
|
294 |
+
run.click(send_it, inputs=[magic3, model_name1], outputs=[output3])
|
295 |
+
run.click(send_it, inputs=[magic4, model_name1], outputs=[output4])
|
296 |
+
run.click(send_it, inputs=[magic5, model_name1], outputs=[output5])
|
297 |
+
run.click(send_it, inputs=[magic6, model_name1], outputs=[output6])
|
298 |
+
run.click(send_it, inputs=[magic7, model_name1], outputs=[output7])
|
299 |
+
run.click(send_it, inputs=[magic8, model_name1], outputs=[output8])
|
300 |
+
run.click(send_it, inputs=[magic9, model_name1], outputs=[output9])
|
301 |
|
302 |
+
see_prompts.click(text_it, inputs=[input_text], outputs=[magic1])
|
303 |
+
see_prompts.click(text_it, inputs=[input_text], outputs=[magic2])
|
304 |
+
see_prompts.click(text_it, inputs=[input_text], outputs=[magic3])
|
305 |
+
see_prompts.click(text_it, inputs=[input_text], outputs=[magic4])
|
306 |
+
see_prompts.click(text_it, inputs=[input_text], outputs=[magic5])
|
307 |
+
see_prompts.click(text_it, inputs=[input_text], outputs=[magic6])
|
308 |
+
see_prompts.click(text_it, inputs=[input_text], outputs=[magic7])
|
309 |
+
see_prompts.click(text_it, inputs=[input_text], outputs=[magic8])
|
310 |
+
see_prompts.click(text_it, inputs=[input_text], outputs=[magic9])
|
311 |
|
312 |
myface.queue(concurrency_count=200)
|
313 |
myface.launch(inline=True, show_api=False, max_threads=400)
|