Spaces:
Running
Running
adding lots of new flux LoRAs
Browse files
app.py
CHANGED
|
@@ -54,6 +54,39 @@ def query(prompt, model, custom_lora, is_negative=False, steps=35, cfg_scale=7,
|
|
| 54 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
|
| 55 |
if model == 'FLUX.1 [Schnell]':
|
| 56 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
if model == 'Flux Logo Design':
|
| 58 |
API_URL = "https://api-inference.huggingface.co/models/Shakker-Labs/FLUX.1-dev-LoRA-Logo-Design"
|
| 59 |
prompt = f"wablogo, logo, Minimalist, {prompt}"
|
|
@@ -328,6 +361,7 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme_5') as dalle:
|
|
| 328 |
model_search = gr.Textbox(label="Filter Models", placeholder="Search for a featured model...", lines=1, elem_id="model-search-input")
|
| 329 |
models_list = (
|
| 330 |
"3D Sketchfab",
|
|
|
|
| 331 |
"90s Anime Art",
|
| 332 |
"AbsoluteReality 1.8.1",
|
| 333 |
"Analog",
|
|
@@ -339,6 +373,7 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme_5') as dalle:
|
|
| 339 |
"Boreal",
|
| 340 |
"Caricature",
|
| 341 |
"Collage Flux",
|
|
|
|
| 342 |
"Character Design",
|
| 343 |
"Coloring Book Generator",
|
| 344 |
"Cyborg Style XL",
|
|
@@ -350,6 +385,8 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme_5') as dalle:
|
|
| 350 |
"Filmgrain",
|
| 351 |
"FLUX.1 [Dev]",
|
| 352 |
"FLUX.1 [Schnell]",
|
|
|
|
|
|
|
| 353 |
"Flux Realism LoRA",
|
| 354 |
"Flux Super Realism LoRA",
|
| 355 |
"Flux Uncensored",
|
|
@@ -364,7 +401,9 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme_5') as dalle:
|
|
| 364 |
"Flux Koda",
|
| 365 |
"Flux Tarot v1",
|
| 366 |
"Flux Tarot Cards",
|
|
|
|
| 367 |
"Flux Midjourney Anime",
|
|
|
|
| 368 |
"Flux Logo Design",
|
| 369 |
"Flux Product Ad Backdrop",
|
| 370 |
"Flux Outfit Generator",
|
|
@@ -378,6 +417,8 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme_5') as dalle:
|
|
| 378 |
"Lustly Flux Uncensored v1",
|
| 379 |
"Maple Syrup",
|
| 380 |
"Midjourney",
|
|
|
|
|
|
|
| 381 |
"Movie Board",
|
| 382 |
"NSFW Master Flux",
|
| 383 |
"NSFW XL",
|
|
@@ -393,10 +434,13 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme_5') as dalle:
|
|
| 393 |
"PS1 Style Flux",
|
| 394 |
"Redmond SDXL",
|
| 395 |
"Retro Comic Flux",
|
|
|
|
|
|
|
| 396 |
"Softserve Anime",
|
| 397 |
"SoftPasty Flux",
|
| 398 |
"Soviet Diffusion XL",
|
| 399 |
"Sketched Out Manga",
|
|
|
|
| 400 |
"Selfie Photography",
|
| 401 |
"Stable Diffusion 2-1",
|
| 402 |
"Stable Diffusion XL",
|
|
|
|
| 54 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
|
| 55 |
if model == 'FLUX.1 [Schnell]':
|
| 56 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
|
| 57 |
+
if model == 'Flux Condensation':
|
| 58 |
+
API_URL = "https://api-inference.huggingface.co/models/fofr/flux-condensation"
|
| 59 |
+
prompt = f"CONDENSATION, {prompt}"
|
| 60 |
+
if model == 'Flux Handwriting':
|
| 61 |
+
API_URL = "https://api-inference.huggingface.co/models/fofr/flux-handwriting"
|
| 62 |
+
prompt = f"HWRIT handwriting, {prompt}"
|
| 63 |
+
if model == 'Shou Xin':
|
| 64 |
+
API_URL = "https://api-inference.huggingface.co/models/Datou1111/shou_xin"
|
| 65 |
+
prompt = f"shou_xin, pencil sketch, {prompt}"
|
| 66 |
+
if model == 'Sketch Smudge':
|
| 67 |
+
API_URL = "https://api-inference.huggingface.co/models/strangerzonehf/Flux-Sketch-Smudge-LoRA"
|
| 68 |
+
prompt = f"Sketch Smudge, {prompt}"
|
| 69 |
+
if model == '80s Cyberpunk':
|
| 70 |
+
API_URL = "https://api-inference.huggingface.co/models/fofr/flux-80s-cyberpunk"
|
| 71 |
+
prompt = f"80s cyberpunk, {prompt}"
|
| 72 |
+
if model == 'Coloring Book Flux':
|
| 73 |
+
API_URL = "https://api-inference.huggingface.co/models/renderartist/coloringbookflux"
|
| 74 |
+
prompt = f"c0l0ringb00k, coloring book, coloring book page, {prompt}"
|
| 75 |
+
if model == 'Flux Miniature LoRA':
|
| 76 |
+
API_URL = "https://api-inference.huggingface.co/models/gokaygokay/Flux-Miniature-LoRA"
|
| 77 |
+
prompt = f"MNTR, miniature drawing, {prompt}"
|
| 78 |
+
if model == 'Sketch Paint':
|
| 79 |
+
API_URL = "https://api-inference.huggingface.co/models/strangerzonehf/Sketch-Paint"
|
| 80 |
+
prompt = f"Sketch paint, {prompt}"
|
| 81 |
+
if model == 'Flux UltraRealism 2.0':
|
| 82 |
+
API_URL = "https://api-inference.huggingface.co/models/prithivMLmods/Canopus-LoRA-Flux-UltraRealism-2.0"
|
| 83 |
+
prompt = f"Ultra realistic, {prompt}"
|
| 84 |
+
if model == 'Midjourney Mix':
|
| 85 |
+
API_URL = "https://api-inference.huggingface.co/models/strangerzonehf/Flux-Midjourney-Mix-LoRA"
|
| 86 |
+
prompt = f"midjourney mix, {prompt}"
|
| 87 |
+
if model == 'Midjourney Mix 2':
|
| 88 |
+
API_URL = "https://api-inference.huggingface.co/models/strangerzonehf/Flux-Midjourney-Mix2-LoRA"
|
| 89 |
+
prompt = f"MJ v6, {prompt}"
|
| 90 |
if model == 'Flux Logo Design':
|
| 91 |
API_URL = "https://api-inference.huggingface.co/models/Shakker-Labs/FLUX.1-dev-LoRA-Logo-Design"
|
| 92 |
prompt = f"wablogo, logo, Minimalist, {prompt}"
|
|
|
|
| 361 |
model_search = gr.Textbox(label="Filter Models", placeholder="Search for a featured model...", lines=1, elem_id="model-search-input")
|
| 362 |
models_list = (
|
| 363 |
"3D Sketchfab",
|
| 364 |
+
"80s Cyberpunk",
|
| 365 |
"90s Anime Art",
|
| 366 |
"AbsoluteReality 1.8.1",
|
| 367 |
"Analog",
|
|
|
|
| 373 |
"Boreal",
|
| 374 |
"Caricature",
|
| 375 |
"Collage Flux",
|
| 376 |
+
"Coloring Book Flux",
|
| 377 |
"Character Design",
|
| 378 |
"Coloring Book Generator",
|
| 379 |
"Cyborg Style XL",
|
|
|
|
| 385 |
"Filmgrain",
|
| 386 |
"FLUX.1 [Dev]",
|
| 387 |
"FLUX.1 [Schnell]",
|
| 388 |
+
"FLux Condensation",
|
| 389 |
+
"Flux Handwriting",
|
| 390 |
"Flux Realism LoRA",
|
| 391 |
"Flux Super Realism LoRA",
|
| 392 |
"Flux Uncensored",
|
|
|
|
| 401 |
"Flux Koda",
|
| 402 |
"Flux Tarot v1",
|
| 403 |
"Flux Tarot Cards",
|
| 404 |
+
"Flux UltraRealism 2.0",
|
| 405 |
"Flux Midjourney Anime",
|
| 406 |
+
"Flux Miniature LoRA",
|
| 407 |
"Flux Logo Design",
|
| 408 |
"Flux Product Ad Backdrop",
|
| 409 |
"Flux Outfit Generator",
|
|
|
|
| 417 |
"Lustly Flux Uncensored v1",
|
| 418 |
"Maple Syrup",
|
| 419 |
"Midjourney",
|
| 420 |
+
"Midjourney Mix",
|
| 421 |
+
"Midjourney Mix 2",
|
| 422 |
"Movie Board",
|
| 423 |
"NSFW Master Flux",
|
| 424 |
"NSFW XL",
|
|
|
|
| 434 |
"PS1 Style Flux",
|
| 435 |
"Redmond SDXL",
|
| 436 |
"Retro Comic Flux",
|
| 437 |
+
"Sketch Smudge",
|
| 438 |
+
"Shou Xin",
|
| 439 |
"Softserve Anime",
|
| 440 |
"SoftPasty Flux",
|
| 441 |
"Soviet Diffusion XL",
|
| 442 |
"Sketched Out Manga",
|
| 443 |
+
"Sketch Paint",
|
| 444 |
"Selfie Photography",
|
| 445 |
"Stable Diffusion 2-1",
|
| 446 |
"Stable Diffusion XL",
|