adding a handful of cool loras
Browse files
app.py
CHANGED
|
@@ -55,6 +55,55 @@ def query(prompt, model, is_negative=False, steps=35, cfg_scale=7, sampler="DPM+
|
|
| 55 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
|
| 56 |
if model == 'FLUX.1 [Schnell]':
|
| 57 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
if model == 'PS1 Style Flux':
|
| 59 |
API_URL = "https://api-inference.huggingface.co/models/veryVANYA/ps1-style-flux"
|
| 60 |
prompt = f"ps1 game screenshot, {prompt}"
|
|
@@ -104,7 +153,7 @@ def query(prompt, model, is_negative=False, steps=35, cfg_scale=7, sampler="DPM+
|
|
| 104 |
prompt = f"egmid, {prompt}"
|
| 105 |
if model == 'Coloring Book Generator':
|
| 106 |
API_URL = "https://api-inference.huggingface.co/models/robert123231/coloringbookgenerator"
|
| 107 |
-
if model == '
|
| 108 |
API_URL = "https://api-inference.huggingface.co/models/prithivMLmods/Castor-Collage-Dim-Flux-LoRA"
|
| 109 |
prompt = f"collage, {prompt}"
|
| 110 |
if model == 'Flux Product Ad Backdrop':
|
|
@@ -276,6 +325,7 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme_5') as dalle:
|
|
| 276 |
# Textbox for searching models
|
| 277 |
model_search = gr.Textbox(label="Search Models", placeholder="Search for a model...", lines=1, elem_id="model-search-input")
|
| 278 |
models_list = (
|
|
|
|
| 279 |
"90s Anime Art",
|
| 280 |
"AbsoluteReality 1.8.1",
|
| 281 |
"Analog",
|
|
@@ -285,7 +335,8 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme_5') as dalle:
|
|
| 285 |
"Ascii Art",
|
| 286 |
"Brain Melt Acid Art",
|
| 287 |
"Boreal",
|
| 288 |
-
"
|
|
|
|
| 289 |
"Character Design",
|
| 290 |
"Coloring Book Generator",
|
| 291 |
"Cyborg Style XL",
|
|
@@ -299,34 +350,49 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme_5') as dalle:
|
|
| 299 |
"FLUX.1 [Schnell]",
|
| 300 |
"Flux Realism LoRA",
|
| 301 |
"Flux Super Realism LoRA",
|
|
|
|
|
|
|
|
|
|
| 302 |
"Flux Ghibsky Illustration",
|
|
|
|
|
|
|
| 303 |
"Flux AestheticAnime",
|
| 304 |
"Flux SyntheticAnime",
|
|
|
|
| 305 |
"Flux Koda",
|
| 306 |
"Flux Tarot v1",
|
|
|
|
| 307 |
"Flux Midjourney Anime",
|
|
|
|
| 308 |
"Flux Product Ad Backdrop",
|
| 309 |
"Flux Outfit Generator",
|
| 310 |
"Frosting Lane Flux",
|
| 311 |
"Half Illustration",
|
| 312 |
"How2Draw",
|
|
|
|
| 313 |
"Leonardo AI Style Illustration",
|
| 314 |
"Little Tinies",
|
| 315 |
"Lofi Cuties",
|
| 316 |
"Lustly Flux Uncensored v1",
|
| 317 |
"Maple Syrup",
|
| 318 |
"Midjourney",
|
|
|
|
| 319 |
"NSFW Master Flux",
|
| 320 |
"NSFW XL",
|
| 321 |
"OpenDalle v1.1",
|
| 322 |
"Perfect Lewd Fantasy",
|
| 323 |
"Pixel Art Redmond",
|
| 324 |
"Pixel Art XL",
|
|
|
|
| 325 |
"Product Design",
|
|
|
|
|
|
|
| 326 |
"Phantasma Anime",
|
| 327 |
"PS1 Style Flux",
|
| 328 |
"Redmond SDXL",
|
|
|
|
| 329 |
"Softserve Anime",
|
|
|
|
| 330 |
"Soviet Diffusion XL",
|
| 331 |
"Sketched Out Manga",
|
| 332 |
"Selfie Photography",
|
|
|
|
| 55 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
|
| 56 |
if model == 'FLUX.1 [Schnell]':
|
| 57 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
|
| 58 |
+
if model == 'Flux Logo Design':
|
| 59 |
+
API_URL = "https://api-inference.huggingface.co/models/Shakker-Labs/FLUX.1-dev-LoRA-Logo-Design"
|
| 60 |
+
prompt = f"wablogo, logo, Minimalist, {prompt}"
|
| 61 |
+
if model == 'Flux Uncensored':
|
| 62 |
+
API_URL = "https://api-inference.huggingface.co/models/enhanceaiteam/Flux-uncensored"
|
| 63 |
+
if model == 'Flux Uncensored V2':
|
| 64 |
+
API_URL = "https://api-inference.huggingface.co/models/enhanceaiteam/Flux-Uncensored-V2"
|
| 65 |
+
if model == 'Flux Tarot Cards':
|
| 66 |
+
API_URL = "https://api-inference.huggingface.co/models/prithivMLmods/Ton618-Tarot-Cards-Flux-LoRA"
|
| 67 |
+
prompt = f"Tarot card, {prompt}"
|
| 68 |
+
if model == 'Pixel Art Sprites':
|
| 69 |
+
API_URL = "https://api-inference.huggingface.co/models/sWizad/pokemon-trainer-sprites-pixelart-flux"
|
| 70 |
+
prompt = f"a pixel image, {prompt}"
|
| 71 |
+
if model == '3D Sketchfab':
|
| 72 |
+
API_URL = "https://api-inference.huggingface.co/models/prithivMLmods/Castor-3D-Sketchfab-Flux-LoRA"
|
| 73 |
+
prompt = f"3D Sketchfab, {prompt}"
|
| 74 |
+
if model == 'Retro Comic Flux':
|
| 75 |
+
API_URL = "https://api-inference.huggingface.co/models/renderartist/retrocomicflux"
|
| 76 |
+
prompt = f"c0m1c, comic book panel, {prompt}"
|
| 77 |
+
if model == 'Caricature':
|
| 78 |
+
API_URL = "https://api-inference.huggingface.co/models/TheAwakenOne/caricature"
|
| 79 |
+
prompt = f"CCTUR3, {prompt}"
|
| 80 |
+
if model == 'Huggieverse':
|
| 81 |
+
API_URL = "https://api-inference.huggingface.co/models/Chunte/flux-lora-Huggieverse"
|
| 82 |
+
prompt = f"HGGRE, {prompt}"
|
| 83 |
+
if model == 'Propaganda Poster':
|
| 84 |
+
API_URL = "https://api-inference.huggingface.co/models/AlekseyCalvin/Propaganda_Poster_Schnell_by_doctor_diffusion"
|
| 85 |
+
prompt = f"propaganda poster, {prompt}"
|
| 86 |
+
if model == 'Flux Game Assets V2':
|
| 87 |
+
API_URL = "https://api-inference.huggingface.co/models/gokaygokay/Flux-Game-Assets-LoRA-v2"
|
| 88 |
+
prompt = f"wbgmsst, white background, {prompt}"
|
| 89 |
+
if model == 'SoftPasty Flux':
|
| 90 |
+
API_URL = "https://api-inference.huggingface.co/models/alvdansen/softpasty-flux-dev"
|
| 91 |
+
prompt = f"araminta_illus illustration style, {prompt}"
|
| 92 |
+
if model == 'Flux Stickers':
|
| 93 |
+
API_URL = "https://api-inference.huggingface.co/models/diabolic6045/Flux_Sticker_Lora"
|
| 94 |
+
prompt = f"5t1cker 5ty1e, {prompt}"
|
| 95 |
+
if model == 'Flux Animex V2':
|
| 96 |
+
API_URL = "https://api-inference.huggingface.co/models/strangerzonehf/Flux-Animex-v2-LoRA"
|
| 97 |
+
prompt = f"Animex, {prompt}"
|
| 98 |
+
if model == 'Flux Animeo V1':
|
| 99 |
+
API_URL = "https://api-inference.huggingface.co/models/strangerzonehf/Flux-Animeo-v1-LoRA"
|
| 100 |
+
prompt = f"Animeo, {prompt}"
|
| 101 |
+
if model == 'Movie Board':
|
| 102 |
+
API_URL = "https://api-inference.huggingface.co/models/prithivMLmods/Flux.1-Dev-Movie-Boards-LoRA"
|
| 103 |
+
prompt = f"movieboard, {prompt}"
|
| 104 |
+
if model == 'Purple Dreamy':
|
| 105 |
+
API_URL = "https://api-inference.huggingface.co/models/prithivMLmods/Purple-Dreamy-Flux-LoRA"
|
| 106 |
+
prompt = f"Purple Dreamy, {prompt}"
|
| 107 |
if model == 'PS1 Style Flux':
|
| 108 |
API_URL = "https://api-inference.huggingface.co/models/veryVANYA/ps1-style-flux"
|
| 109 |
prompt = f"ps1 game screenshot, {prompt}"
|
|
|
|
| 153 |
prompt = f"egmid, {prompt}"
|
| 154 |
if model == 'Coloring Book Generator':
|
| 155 |
API_URL = "https://api-inference.huggingface.co/models/robert123231/coloringbookgenerator"
|
| 156 |
+
if model == 'Collage Flux':
|
| 157 |
API_URL = "https://api-inference.huggingface.co/models/prithivMLmods/Castor-Collage-Dim-Flux-LoRA"
|
| 158 |
prompt = f"collage, {prompt}"
|
| 159 |
if model == 'Flux Product Ad Backdrop':
|
|
|
|
| 325 |
# Textbox for searching models
|
| 326 |
model_search = gr.Textbox(label="Search Models", placeholder="Search for a model...", lines=1, elem_id="model-search-input")
|
| 327 |
models_list = (
|
| 328 |
+
"3D Sketchfab",
|
| 329 |
"90s Anime Art",
|
| 330 |
"AbsoluteReality 1.8.1",
|
| 331 |
"Analog",
|
|
|
|
| 335 |
"Ascii Art",
|
| 336 |
"Brain Melt Acid Art",
|
| 337 |
"Boreal",
|
| 338 |
+
"Caricature",
|
| 339 |
+
"Collage Flux",
|
| 340 |
"Character Design",
|
| 341 |
"Coloring Book Generator",
|
| 342 |
"Cyborg Style XL",
|
|
|
|
| 350 |
"FLUX.1 [Schnell]",
|
| 351 |
"Flux Realism LoRA",
|
| 352 |
"Flux Super Realism LoRA",
|
| 353 |
+
"Flux Uncensored",
|
| 354 |
+
"Flux Uncensored V2",
|
| 355 |
+
"Flux Game Assets V2",
|
| 356 |
"Flux Ghibsky Illustration",
|
| 357 |
+
"Flux Animex V2",
|
| 358 |
+
"Flux Animeo V1",
|
| 359 |
"Flux AestheticAnime",
|
| 360 |
"Flux SyntheticAnime",
|
| 361 |
+
"Flux Stickers",
|
| 362 |
"Flux Koda",
|
| 363 |
"Flux Tarot v1",
|
| 364 |
+
"Flux Tarot Cards",
|
| 365 |
"Flux Midjourney Anime",
|
| 366 |
+
"Flux Logo Design",
|
| 367 |
"Flux Product Ad Backdrop",
|
| 368 |
"Flux Outfit Generator",
|
| 369 |
"Frosting Lane Flux",
|
| 370 |
"Half Illustration",
|
| 371 |
"How2Draw",
|
| 372 |
+
"Huggieverse",
|
| 373 |
"Leonardo AI Style Illustration",
|
| 374 |
"Little Tinies",
|
| 375 |
"Lofi Cuties",
|
| 376 |
"Lustly Flux Uncensored v1",
|
| 377 |
"Maple Syrup",
|
| 378 |
"Midjourney",
|
| 379 |
+
"Movie Board",
|
| 380 |
"NSFW Master Flux",
|
| 381 |
"NSFW XL",
|
| 382 |
"OpenDalle v1.1",
|
| 383 |
"Perfect Lewd Fantasy",
|
| 384 |
"Pixel Art Redmond",
|
| 385 |
"Pixel Art XL",
|
| 386 |
+
"Pixel Art Sprites",
|
| 387 |
"Product Design",
|
| 388 |
+
"Propaganda Poster",
|
| 389 |
+
"Purple Dreamy",
|
| 390 |
"Phantasma Anime",
|
| 391 |
"PS1 Style Flux",
|
| 392 |
"Redmond SDXL",
|
| 393 |
+
"Retro Comic Flux",
|
| 394 |
"Softserve Anime",
|
| 395 |
+
"SoftPasty Flux",
|
| 396 |
"Soviet Diffusion XL",
|
| 397 |
"Sketched Out Manga",
|
| 398 |
"Selfie Photography",
|