Nymbo commited on
Commit
5284824
1 Parent(s): bc1bfe7

102 models

Browse files
Files changed (1) hide show
  1. app.py +136 -19
app.py CHANGED
@@ -10,7 +10,7 @@ import json
10
 
11
  # Project by Nymbo
12
 
13
- API_URL = "https://api-inference.huggingface.co/models/segmind/SSD-1B"
14
  API_TOKEN = os.getenv("HF_READ_TOKEN")
15
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
16
  timeout = 100
@@ -82,6 +82,89 @@ def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM+
82
  # API_URL = "https://api-inference.huggingface.co/models/"
83
  # prompt = f"Ultra realistic porn. {prompt}"
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  if model == 'Fluently XL Final':
86
  API_URL = "https://api-inference.huggingface.co/models/fluently/Fluently-XL-Final"
87
  if model == 'NSFW XL':
@@ -98,18 +181,12 @@ def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM+
98
  API_URL = "https://api-inference.huggingface.co/models/Yntec/Timeless"
99
  if model == 'Pixel Art Redmond':
100
  API_URL = "https://api-inference.huggingface.co/models/artificialguybr/PixelArtRedmond"
101
- if model == 'ProteusV0.4':
102
  API_URL = "https://api-inference.huggingface.co/models/dataautogpt3/ProteusV0.4"
103
- if model == 'ProteusV0.3':
104
- API_URL = "https://api-inference.huggingface.co/models/dataautogpt3/ProteusV0.3"
105
  if model == 'RetroLife':
106
  API_URL = "https://api-inference.huggingface.co/models/Yntec/RetroLife"
107
  if model == 'AsianMix':
108
  API_URL = "https://api-inference.huggingface.co/models/Yntec/AsianMix"
109
- if model == 'Stable Diffusion 2.1':
110
- API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-2-1"
111
- if model == 'Portrait Finetuned':
112
- API_URL = "https://api-inference.huggingface.co/models/segmind/portrait-finetuned"
113
  if model == 'Aurora':
114
  API_URL = "https://api-inference.huggingface.co/models/Yntec/Aurora"
115
  if model == 'ShortPrompts':
@@ -191,7 +268,7 @@ def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM+
191
  if model == 'Incursios 1.6':
192
  API_URL = "https://api-inference.huggingface.co/models/digiplay/incursiosMemeDiffusion_v1.6"
193
  prompt = f"Anime porn. {prompt}"
194
- if model == 'NewReality XL':
195
  API_URL = "https://api-inference.huggingface.co/models/stablediffusionapi/newrealityxl-global-nsfw"
196
  if model == 'Disney':
197
  API_URL = "https://api-inference.huggingface.co/models/goofyai/disney_style_xl"
@@ -263,19 +340,57 @@ with gr.Blocks(theme='Nymbo/Alyx_Theme') as dalle:
263
 
264
  # UPDATE WITH NEW MODELS, ORDER MATTERS IN END USER UI
265
 
 
 
 
266
  "Fluently XL Final",
267
  "Animagine XL 3.1",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
268
  "Epic Diffusion",
269
  "DreamPhotoGasm",
270
  "Analog Redmond",
271
  "Timeless",
272
  "NSFW XL",
273
  "Pixel Art Redmond",
274
- "Photon",
275
  "Incredible World 2",
276
  "ShortPrompts",
277
- "ProteusV0.4",
278
- "ProteusV0.3",
279
  "Analog",
280
  "RealLife",
281
  "Paragon",
@@ -285,9 +400,8 @@ with gr.Blocks(theme='Nymbo/Alyx_Theme') as dalle:
285
  "CyberRealistic",
286
  "DreamAnything",
287
  "pineappleAnimeMix",
288
- "Ascii Art",
289
  "Aurora",
290
- "Portrait Finetuned",
291
  "AsianMix",
292
  "OpenGenDiffusers",
293
  "NewMoon",
@@ -309,7 +423,6 @@ with gr.Blocks(theme='Nymbo/Alyx_Theme') as dalle:
309
  "SDXXXL 2",
310
  "epiCPhotoGasm",
311
  "AbsoluteReality 1.8.1",
312
- "SSD-1B",
313
  "Dreamshaper XL Turbo",
314
  "Realistic Vision v12",
315
  "NSFW Hentai",
@@ -320,22 +433,26 @@ with gr.Blocks(theme='Nymbo/Alyx_Theme') as dalle:
320
  "Incursios 1.6",
321
  "SexyToons",
322
  "CutesyAnime",
323
- "NewReality XL",
324
  "Disney",
325
  "CleanLinearMix",
326
  "Redmond SDXL",
327
  "SDXL Niji",
328
  "Crystal Clear XL",
 
 
329
  "Playground 2",
330
- "Stable Diffusion 2.1"
331
  )
332
- model = gr.Radio(label="Select a model below", value="Fluently XL Final", choices=models_list)
 
 
 
333
 
334
 
335
 
336
  with gr.Tab("Advanced Settings"):
337
  with gr.Row():
338
- negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness", lines=3, elem_id="negative-prompt-text-input")
339
  with gr.Row():
340
  steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)
341
  with gr.Row():
 
10
 
11
  # Project by Nymbo
12
 
13
+ API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
14
  API_TOKEN = os.getenv("HF_READ_TOKEN")
15
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
16
  timeout = 100
 
82
  # API_URL = "https://api-inference.huggingface.co/models/"
83
  # prompt = f"Ultra realistic porn. {prompt}"
84
 
85
+ # if model == 'Xx':
86
+ # API_URL = "https://api-inference.huggingface.co/models/"
87
+
88
+ if model == 'Stable Diffusion XL':
89
+ API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
90
+ if model == 'Stable Diffusion 3':
91
+ API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-3-medium-diffusers"
92
+ if model == 'RealVisXL v4.0':
93
+ API_URL = "https://api-inference.huggingface.co/models/SG161222/RealVisXL_V4.0"
94
+ if model == 'Duchaiten Real3D NSFW XL':
95
+ API_URL = "https://api-inference.huggingface.co/models/stablediffusionapi/duchaiten-real3d-nsfw-xl"
96
+ if model == 'Tempest v0.1':
97
+ API_URL = "https://api-inference.huggingface.co/models/dataautogpt3/TempestV0.1"
98
+ if model == 'Explicit Freedom NSFW Waifu':
99
+ API_URL = "https://api-inference.huggingface.co/models/stablediffusionapi/explicit-freedom-nsfw-wai"
100
+ if model == 'Realistic Stock Photo':
101
+ API_URL = "https://api-inference.huggingface.co/models/stablediffusionapi/realistic-stock-photo"
102
+ if model == 'Archfey Anime':
103
+ API_URL = "https://api-inference.huggingface.co/models/alvdansen/archfey_anime"
104
+ if model == 'Lofi Cuties':
105
+ API_URL = "https://api-inference.huggingface.co/models/alvdansen/lofi-cuties"
106
+ if model == 'Mobius':
107
+ API_URL = "https://api-inference.huggingface.co/models/Corcelio/mobius"
108
+ if model == 'fennPhoto':
109
+ API_URL = "https://api-inference.huggingface.co/models/Yntec/fennPhoto"
110
+ if model == 'Juggernaut X v10':
111
+ API_URL = "https://api-inference.huggingface.co/models/RunDiffusion/Juggernaut-X-v10"
112
+ if model == 'Chip n DallE':
113
+ API_URL = "https://api-inference.huggingface.co/models/Yntec/Chip_n_DallE"
114
+ if model == 'Roleplay':
115
+ API_URL = "https://api-inference.huggingface.co/models/Yntec/Roleplay"
116
+ if model == 'YiffyMix':
117
+ API_URL = "https://api-inference.huggingface.co/models/Yntec/YiffyMix"
118
+ if model == 'Movie X':
119
+ API_URL = "https://api-inference.huggingface.co/models/Yntec/aMovieX"
120
+ if model == 'Fabulous':
121
+ API_URL = "https://api-inference.huggingface.co/models/Yntec/Fabulous"
122
+ if model == 'FotoPhoto':
123
+ API_URL = "https://api-inference.huggingface.co/models/Yntec/FotoPhoto"
124
+ if model == 'MajicMIX Realistic v6':
125
+ API_URL = "https://api-inference.huggingface.co/models/digiplay/majicMIX_realistic_v6"
126
+ if model == 'FX Photorealistic v1':
127
+ API_URL = "https://api-inference.huggingface.co/models/digiplay/RunDiffusionFXPhotorealistic_v1"
128
+ if model == 'Analog Madness Realistic v7':
129
+ API_URL = "https://api-inference.huggingface.co/models/digiplay/AnalogMadness-realistic-model-v7"
130
+ if model == 'Selfie Photography':
131
+ API_URL = "https://api-inference.huggingface.co/models/artificialguybr/selfiephotographyredmond-selfie-photography-lora-for-sdxl"
132
+ if model == 'Filmgrain':
133
+ API_URL = "https://api-inference.huggingface.co/models/artificialguybr/filmgrain-redmond-filmgrain-lora-for-sdxl"
134
+ if model == '3D Render Style XL':
135
+ API_URL = "https://api-inference.huggingface.co/models/goofyai/3d_render_style_xl"
136
+ if model == 'Leonardo AI Style Illustration':
137
+ API_URL = "https://api-inference.huggingface.co/models/goofyai/Leonardo_Ai_Style_Illustration"
138
+ if model == 'Disney Style XL':
139
+ API_URL = "https://api-inference.huggingface.co/models/goofyai/disney_style_xl"
140
+ if model == 'Cyborg Style XL':
141
+ API_URL = "https://api-inference.huggingface.co/models/goofyai/cyborg_style_xl"
142
+ if model == 'Protogen':
143
+ API_URL = "https://api-inference.huggingface.co/models/Yntec/Protogen_Unofficial_Release"
144
+ if model == 'Better Pony Diffusiion':
145
+ API_URL = "https://api-inference.huggingface.co/models/Yntec/BetterPonyDiffusion"
146
+ if model == 'Fluently XL v4':
147
+ API_URL = "https://api-inference.huggingface.co/models/fluently/Fluently-XL-v4"
148
+ if model == 'Little Tinies':
149
+ API_URL = "https://api-inference.huggingface.co/models/alvdansen/littletinies"
150
+ if model == 'Counterfeit v2.5':
151
+ API_URL = "https://api-inference.huggingface.co/models/gsdf/Counterfeit-V2.5"
152
+ if model == 'Raelestia XL':
153
+ API_URL = "https://api-inference.huggingface.co/models/Raelina/Raelestia-XL"
154
+ if model == 'Starry XL 5.2':
155
+ API_URL = "https://api-inference.huggingface.co/models/eienmojiki/Starry-XL-v5.2"
156
+ if model == 'NSFW Gen 2':
157
+ API_URL = "https://api-inference.huggingface.co/models/UnfilteredAI/NSFW-gen-v2"
158
+ if model == 'Mann-E Dreams':
159
+ API_URL = "https://api-inference.huggingface.co/models/mann-e/Mann-E_Dreams"
160
+ if model == 'SexOholic':
161
+ API_URL = "https://api-inference.huggingface.co/models/John6666/sexoholic-real-pony-nsfw-v2-sdxl"
162
+ if model == 'MIKO Realistic':
163
+ API_URL = "https://api-inference.huggingface.co/models/John6666/photo-realistic-pony-v5-sdxl"
164
+ if model == 'Mala Anime Mix':
165
+ API_URL = "https://api-inference.huggingface.co/models/John6666/photo-realistic-pony-v5-sdxl"
166
+ if model == 'Lewdfusion':
167
+ API_URL = "https://api-inference.huggingface.co/models/John6666/getphat-pony-lewdfusion-v1-sdxl"
168
  if model == 'Fluently XL Final':
169
  API_URL = "https://api-inference.huggingface.co/models/fluently/Fluently-XL-Final"
170
  if model == 'NSFW XL':
 
181
  API_URL = "https://api-inference.huggingface.co/models/Yntec/Timeless"
182
  if model == 'Pixel Art Redmond':
183
  API_URL = "https://api-inference.huggingface.co/models/artificialguybr/PixelArtRedmond"
184
+ if model == 'Proteus V0.4':
185
  API_URL = "https://api-inference.huggingface.co/models/dataautogpt3/ProteusV0.4"
 
 
186
  if model == 'RetroLife':
187
  API_URL = "https://api-inference.huggingface.co/models/Yntec/RetroLife"
188
  if model == 'AsianMix':
189
  API_URL = "https://api-inference.huggingface.co/models/Yntec/AsianMix"
 
 
 
 
190
  if model == 'Aurora':
191
  API_URL = "https://api-inference.huggingface.co/models/Yntec/Aurora"
192
  if model == 'ShortPrompts':
 
268
  if model == 'Incursios 1.6':
269
  API_URL = "https://api-inference.huggingface.co/models/digiplay/incursiosMemeDiffusion_v1.6"
270
  prompt = f"Anime porn. {prompt}"
271
+ if model == 'NewReality XL NSFW':
272
  API_URL = "https://api-inference.huggingface.co/models/stablediffusionapi/newrealityxl-global-nsfw"
273
  if model == 'Disney':
274
  API_URL = "https://api-inference.huggingface.co/models/goofyai/disney_style_xl"
 
340
 
341
  # UPDATE WITH NEW MODELS, ORDER MATTERS IN END USER UI
342
 
343
+ "Stable Diffusion 3",
344
+ "Stable Diffusion XL",
345
+ "RealVisXL v4.0",
346
  "Fluently XL Final",
347
  "Animagine XL 3.1",
348
+ "Tempest v0.1",
349
+ "Juggernaut X v10",
350
+ "Mobius",
351
+ "fennPhoto",
352
+ "Archfey Anime",
353
+ "Photon",
354
+ "Proteus V0.4",
355
+ "Duchaiten Real3D NSFW XL",
356
+ "Chip n DallE",
357
+ "Roleplay",
358
+ "YiffyMix",
359
+ "Movie X",
360
+ "Fabulous",
361
+ "FotoPhoto",
362
+ "MajicMIX Realistic v6",
363
+ "FX Photorealistic v1",
364
+ "Analog Madness Realistic v7",
365
+ "Selfie Photography",
366
+ "Filmgrain",
367
+ "Leonardo AI Style Illustration",
368
+ "Disney Style XL",
369
+ "Cyborg Style XL",
370
+ "Protogen",
371
+ "Better Pony Diffusion",
372
+ "Fluently XL v4",
373
+ "Little Tinies",
374
+ "Counterfeit v2.5",
375
+ "Starry XL v5.2",
376
+ "SexOholic",
377
+ "Raelestia XL",
378
+ "NSFW Gen 2",
379
+ "Mann-E Dreams",
380
+ "MIKO Realistic",
381
+ "Mala Anime Mix",
382
+ "Lewdfusion",
383
+ "Explicit Freedom NSFW Waifu",
384
+ "Realistic Stock Photo",
385
+ "SSD-1B",
386
  "Epic Diffusion",
387
  "DreamPhotoGasm",
388
  "Analog Redmond",
389
  "Timeless",
390
  "NSFW XL",
391
  "Pixel Art Redmond",
 
392
  "Incredible World 2",
393
  "ShortPrompts",
 
 
394
  "Analog",
395
  "RealLife",
396
  "Paragon",
 
400
  "CyberRealistic",
401
  "DreamAnything",
402
  "pineappleAnimeMix",
403
+ "Lofi Cuties",
404
  "Aurora",
 
405
  "AsianMix",
406
  "OpenGenDiffusers",
407
  "NewMoon",
 
423
  "SDXXXL 2",
424
  "epiCPhotoGasm",
425
  "AbsoluteReality 1.8.1",
 
426
  "Dreamshaper XL Turbo",
427
  "Realistic Vision v12",
428
  "NSFW Hentai",
 
433
  "Incursios 1.6",
434
  "SexyToons",
435
  "CutesyAnime",
436
+ "NewReality XL NSFW",
437
  "Disney",
438
  "CleanLinearMix",
439
  "Redmond SDXL",
440
  "SDXL Niji",
441
  "Crystal Clear XL",
442
+ "Ascii Art",
443
+ "Disney",
444
  "Playground 2",
 
445
  )
446
+
447
+ # SET DEFAULT MODEL HERE
448
+
449
+ model = gr.Radio(label="Select a model below", value="Stable Diffusion 3", choices=models_list)
450
 
451
 
452
 
453
  with gr.Tab("Advanced Settings"):
454
  with gr.Row():
455
+ negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="(deformed, distorted, disfigured), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, misspellings, typos", lines=3, elem_id="negative-prompt-text-input")
456
  with gr.Row():
457
  steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)
458
  with gr.Row():