John6666 commited on
Commit
78f7a7f
·
verified ·
1 Parent(s): 52d4c23

Upload 4 files

Browse files
Files changed (4) hide show
  1. README.md +16 -12
  2. all_models.py +911 -0
  3. app.py +213 -0
  4. externalmod.py +585 -0
README.md CHANGED
@@ -1,12 +1,16 @@
1
- ---
2
- title: Hfd Test Nostopbutton
3
- emoji: 🦀
4
- colorFrom: gray
5
- colorTo: red
6
- sdk: gradio
7
- sdk_version: 4.43.0
8
- app_file: app.py
9
- pinned: false
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
1
+ ---
2
+ title: 800+ AI Art Models 6 Outputs (Gradio 4.x, Single Gallery, no stop button) (Huggingface Diffusion)
3
+ emoji: 🛕🛕
4
+ colorFrom: green
5
+ colorTo: blue
6
+ sdk: gradio
7
+ sdk_version: 4.42.0
8
+ app_file: app.py
9
+ pinned: false
10
+ duplicated_from:
11
+ - Yntec/Diffusion80XX
12
+ - Yntec/HuggingfaceDiffusion
13
+ short_description: Compare up to 6 image models!
14
+ ---
15
+
16
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
all_models.py ADDED
@@ -0,0 +1,911 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ models = [
2
+ "Yntec/beLIEve", #865
3
+ "digiplay/MilkyWonderland_v1", #866
4
+ "Yntec/Hyperlink", #861
5
+ "digiplay/AnalogMadness-realistic-model-v5", #864
6
+ "Yntec/HyperRemix", #859
7
+ "digiplay/ZHMix-Dramatic-v2.0",
8
+ "Yntec/realisticStockPhoto3", #863
9
+ "digiplay/fishmix_other_v1",
10
+ "Yntec/HyperPhotoGASM", #858
11
+ "digiplay/Gap_2.6",
12
+ "Yntec/CrystalReality", #855
13
+ "John6666/meinamix-meinav11-sd15", #857
14
+ "Yntec/Roleplay", #850
15
+ "digiplay/ya3p_VAE", #258
16
+ "Yntec/ICantBelieveItSNotPhotography", #856
17
+ "digiplay/ZemiHR_v2_diffusers",
18
+ "Yntec/Neurogen", #854
19
+ "John6666/am-i-real-v45-sd15", #852
20
+ "Yntec/lnkdn", #851
21
+ "digiplay/ShadowGost_v1",
22
+ "Yntec/ArtisticVision", #845
23
+ "digiplay/DetailAsianRealistic_v2.5_hinablue", #849
24
+ "Yntec/Chip_n_DallE", #844
25
+ "digiplay/rRealism_v1.0_riiwa", #848
26
+ "Yntec/ClayStyle", #838
27
+ "digiplay/TWingshadow_v1.0", #847
28
+ "digiplay/TWingshadow_v1.0_finetune", #846
29
+ "digiplay/V3_by_Hans_Asian",
30
+ "digiplay/Maji5PlusCCTV", #843
31
+ "Yntec/3DKX2",
32
+ "digiplay/cosfMix_v1", #223
33
+ "Yntec/Epsilon_Naught", #831
34
+ "digiplay/LusterMix_v1.5_safetensors", #256
35
+ "Yntec/TrueSight", #841
36
+ "digiplay/XtReMixUltimateMerge_v1.8", #840
37
+ "Yntec/epiCDream", #839
38
+ "digiplay/counterfeitV2525d_tweak",
39
+ "Yntec/Ponygraphy", #827
40
+ "digiplay/m3u", #263
41
+ "Yntec/DucHaitenGODofSIMP", #836
42
+ "digiplay/STRANGER-ANIME", #835
43
+ "Yntec/ElldrethSDaydreamMix", #834
44
+ "digiplay/DonutHoleMix_Beta", #832
45
+ "Yntec/DramaLlama", #820
46
+ "digiplay/STRANGER", #816
47
+ "Yntec/RevAnimatedV2Rebirth", #829
48
+ "digiplay/KawaiiRealisticAsian_v0.7", #828
49
+ "Yntec/ZootVisionEpsilon", #817
50
+ "digiplay/AsianBrmBeautyrealmix_v2.0", #826
51
+ "Yntec/BetterPonyDiffusion", #825
52
+ "digiplay/Realisian_v6", #824
53
+ "Yntec/SCMIX_NightSkyMeina", #823
54
+ "digiplay/chosen-Mix", #821
55
+ "Yntec/ZooFun", #815
56
+ "digiplay/OnlyRealistic_v29", #819
57
+ "Yntec/Wonder", #812
58
+ "digiplay/2K-VAE",
59
+ "Yntec/WaifuDiffusion", #822
60
+ "digiplay/Cetus-Mix-Codaedition_diffusers", #813
61
+ "Yntec/TheWonderMix", #814
62
+ "digiplay/HenmixArt_v1",
63
+ "Yntec/MostClassical", #810
64
+ "digiplay/m0nst3rfy3-testfix", #811
65
+ "Yntec/DreamlikeShaper", #806
66
+ "Ojimi/anime-kawai-diffusion",
67
+ "Yntec/DreamShaperRemix", #2K
68
+ "digiplay/MilkyWonderland_v2", #808
69
+ "Yntec/DigitalSoul", #807
70
+ "digiplay/incursiosMemeDiffusion_v1.6",
71
+ "Yntec/ProjectKawai", #809
72
+ "digiplay/CamelliaMix_NSFW_diffusers_v1.1", #837
73
+ "Yntec/AbsoluteReality", #15K
74
+ "digiplay/PikasAnimatedMix_v1", #805
75
+ "Yntec/BeautyFoolRemix", #800
76
+ "digiplay/dosmixVAE-mangled", #804
77
+ "Yntec/DisneyPixarCartoon768", #803
78
+ "digiplay/AgainMix_v2.0", #802
79
+ "Yntec/mistoonRuby3", #801
80
+ "digiplay/OldFish_v1.1",
81
+ "Yntec/AtoZ", #799
82
+ "digiplay/fantasticmix_k1", #797
83
+ "Yntec/FilmGirlRemix", #795
84
+ "digiplay/fCAnimeMix_v5", #798
85
+ "Yntec/Vintage", #794
86
+ "digiplay/BeautyFoolReality_4", #796
87
+ "Yntec/UltraHighDefinition", #791
88
+ "digiplay/endlessMixRenatus_v1.1", #Added 2023.07.10 updated 2024.05.30
89
+ "Yntec/XenoGASM", #793
90
+ "digiplay/DarkSushi2.5D_v1", #792
91
+ "Yntec/DegreesOfFreedom", #790
92
+ "digiplay/Perfect_Gap_Blend_v1",
93
+ "Yntec/ChickFlick", #787
94
+ "digiplay/fCAnimeMix_v3", #786
95
+ "Yntec/Film", #784
96
+ "digiplay/BeautifulArt_v1", #785
97
+ "Yntec/AnythingV7", #779
98
+ "digiplay/BadAnime_v1",
99
+ "Yntec/LEOSAMsFilmGirlUltra", #783
100
+ "digiplay/7pa-VAE", #782
101
+ "Yntec/ArthemyComics", #781
102
+ "digiplay/EtherRealMix_LUX2",
103
+ "Yntec/ReVAnimatedRemix", #780
104
+ "digiplay/CampurSari_Gen1",
105
+ "Yntec/AnythingNostalgic", #775
106
+ "digiplay/WhiteDreamyHillMix_v1_VAE", #713
107
+ "Yntec/AnyLoRa-768", #778
108
+ "digiplay/CCTV2.5d_v1", #219
109
+ "Yntec/AnythingV5-768", #777
110
+ "digiplay/LEAU",
111
+ "Yntec/Moistalgia", #773
112
+ "digiplay/Colorful_v1.3", #774
113
+ "Yntec/DeleteThis", #770
114
+ "digiplay/LemonTea2.5D",
115
+ "Yntec/ModernDisney", #764
116
+ "digiplay/HadrianDelice_DeliceV1", #772
117
+ "Yntec/IsThisDisney", #767
118
+ "digiplay/MRMD_0505", #769
119
+ "Yntec/RetroArt", #760
120
+ "digiplay/YabaLMixAnimeRealistic_V1.0_VAE", #765
121
+ "Yntec/Fanatic", #758
122
+ "digiplay/fantastel_V1", #759
123
+ "Yntec/Mo-Di-Diffusion-768", #768
124
+ "digiplay/bluePencil_v09b", #766
125
+ "Yntec/AnythingV4.5.6.7.8", #763
126
+ "digiplay/majicMIX_realistic_v7", #761
127
+ "Yntec/ElldrethsRetroMix", #4K
128
+ "digiplay/LemonCreami", #762
129
+ "Yntec/Luxury", #750
130
+ "digiplay/insaneRealistic_v1",
131
+ "Yntec/EpicMadness", #751
132
+ "digiplay/ValMix2-byHemlok", #755
133
+ "Yntec/DucHaitenAIart-beta", #3K
134
+ "digiplay/Acorn_Photo_v1", #757
135
+ "Yntec/a-ZovyaRPGV4", #756
136
+ "digiplay/EdisonNilMix_v1", # Added 7.10 Updated 12.5
137
+ "Yntec/KrazyGlue", #745
138
+ "digiplay/AnyPastel", #752
139
+ "Yntec/EpicDiffusion", #753
140
+ "digiplay/darkphoenix3D_v1.1", #748
141
+ "Yntec/Crybaby", #739
142
+ "digiplay/majicMIXfantasy_v2", #741
143
+ "Yntec/majicmixLux", #749
144
+ "digiplay/asyncsMIX_v5",
145
+ "digiplay/majicMIX_realistic_v5", #742
146
+ "Yntec/insaneRealistic_v2", #746
147
+ "digiplay/xiaomeige_outlineColor_v10", #744
148
+ "digiplay/MixTape_RocknRoll_v3punk_bake_fp16",
149
+ "Yntec/AbyssOrangeMix", #740
150
+ "digiplay/PerfectDeliberate-Anime_v2", #734
151
+ "digiplay/SomethingPhenomenal_vivacityV2", #735
152
+ "Yntec/CocaCola", #733
153
+ "digiplay/majicMixHorror_v1", #738
154
+ "digiplay/Noosphere_v4.2", #737
155
+ "Yntec/Fanta", #730
156
+ "digiplay/K-main_NEO", #731
157
+ "digiplay/COCOtiFaMix_v2", #732
158
+ "Yntec/endlessReality", #736
159
+ "digiplay/Blazarot_blazaroshi", #729
160
+ "digiplay/Photon_v1",
161
+ "Yntec/DreamPhotoGASM", #727
162
+ "digiplay/Sweet-mix_v2.2_flat", #726
163
+ "digiplay/snowpear_anime", #714
164
+ "Yntec/NostalgicLife", #718
165
+ "digiplay/pan04", #725
166
+ "Yntec/Voxel", #715
167
+ "digiplay/FishMix_v1.1",
168
+ "digiplay/chrysanthemumMix_v1",
169
+ "Yntec/DreamlikeDiffusion", #722
170
+ "digiplay/mothmix_v1.41", #720
171
+ "digiplay/BreakDro_i1464", #719
172
+ "Yntec/HyperRealism", #721
173
+ "digiplay/aurorafantasy_v1", #717
174
+ "digiplay/CoharuMix_real",
175
+ "Yntec/Prodigy", #712
176
+ "digiplay/ya3_xt", #711
177
+ "digiplay/XtReMixUltimateMerge_v1.5", #710
178
+ "Yntec/Protogen_Unofficial_Release", #709
179
+ "digiplay/majicMIX_lux_v3", #708
180
+ "digiplay/richyrichmix_V2Fp16", #707
181
+ "Yntec/Timeless", #703
182
+ "digiplay/seizamix_v2", #706
183
+ "digiplay/AnalogMadness-realistic-model-v4", #705
184
+ "Yntec/Fabulous", #700
185
+ "digiplay/realspice_v2", #702
186
+ "digiplay/supashymix_v30Lite", #701
187
+ "Yntec/DucHaitenRetro2", #704
188
+ "digiplay/BeautifulFantasyRealMix_diffusers", #698
189
+ "Yntec/IncredibleLife", #699
190
+ "digiplay/MGM",
191
+ "Yntec/AnythingV3.1", #699
192
+ "digiplay/AstrAnime_v6", #698
193
+ "Yntec/TimelessDiffusion768", #699
194
+ "digiplay/Koji_v2.1_diffusers",
195
+ "Yntec/RetroLife", #691
196
+ "digiplay/CamelliaMIx_2.5D_v1_VAE", #696
197
+ "Yntec/CuteFurry",
198
+ "digiplay/MengX_Mix_Fantasy_v4", #689
199
+ "Yntec/theallysMixIIChurned", #694
200
+ "digiplay/MengX_Mix_Real_v3",
201
+ "Yntec/BrainDance", #693
202
+ "digiplay/ARRealVX1.1",
203
+ "Yntec/Remedy", #697
204
+ "digiplay/PlanetBumix_v1",
205
+ "Yntec/Paramount",
206
+ "digiplay/Yuzu_v1.1", #688
207
+ "Yntec/Playground", #690
208
+ "digiplay/AM-mix1",
209
+ "Yntec/Analog",
210
+ "digiplay/MeinaPastel_v1",
211
+ "Yntec/Tea", #687
212
+ "digiplay/AingDiffusion7.5",
213
+ "Yntec/StableDiffusion768", #686
214
+ "digiplay/perfectlevel10", #685
215
+ "Yntec/IdleFancy",
216
+ "digiplay/Shadir_Diffusion_AR_v2.1_fp16_test1",
217
+ "Yntec/NyankoMotsiX",
218
+ "digiplay/GhostMixV1.2VAE",
219
+ "Yntec/DreamWorksRemix",
220
+ "digiplay/LuckyStrikeMix1.05_Lovelylady",
221
+ "Yntec/Looking-Glass",
222
+ "digiplay/AbsoluteReality_v1.0_diffusers",
223
+ "Yntec/epiCCartoon",
224
+ "digiplay/quincemix_v1",
225
+ "Yntec/DaintyMix",
226
+ "digiplay/fantasticmix_v7",
227
+ "Yntec/DucHaiten-AnyUnreal",
228
+ "digiplay/fantexi_v0.9",
229
+ "Yntec/Genuine",
230
+ "digiplay/OrangeChillMix_v7fix",
231
+ "Yntec/GoFish",
232
+ "digiplay/bluePencilRealistic_v05",
233
+ "Yntec/nuipenimix",
234
+ "digiplay/A80S_v1.0",
235
+ "Yntec/iffyMix",
236
+ "digiplay/lutDiffusion_v09Beta",
237
+ "Yntec/EmeraldCity",
238
+ "digiplay/CleanLinearMix",
239
+ "Yntec/animeSIXTYNINE",
240
+ "digiplay/PolyMorphMix",
241
+ "Yntec/AsianMix",
242
+ "digiplay/polla_mix_2.3D",
243
+ "Yntec/ResidentCNZCartoon3D",
244
+ "digiplay/AbsoluteReality_v1.8.1",
245
+ "Yntec/Memento",
246
+ "digiplay/RealCartoon3D_v6",
247
+ "Yntec/RealLife",
248
+ "digiplay/WolfSystems_v1",
249
+ "Yntec/Vintedois",
250
+ "digiplay/SXZ_Luma_v0.98VAE",
251
+ "Yntec/Based64",
252
+ "digiplay/NextGenMix_R2.8VAE",
253
+ "Yntec/SQUEE",
254
+ "digiplay/HIJKLMix_v2",
255
+ "Yntec/Aurora",
256
+ "digiplay/BeenReal_diffusers",
257
+ "Yntec/Paragon",
258
+ "digiplay/OnlyReal-Black-Mix",
259
+ "Yntec/Infinite80s",
260
+ "digiplay/AI-infinity-V1-fp16",
261
+ "Yntec/InfiniteLiberty",
262
+ "digiplay/XXMix_9realistic_v1",
263
+ "Yntec/aBagOfChips",
264
+ "digiplay/Dolka_Rusalka_v0.5.1",
265
+ "Yntec/IsThisArt",
266
+ "digiplay/YutaMix_realistic_v11",
267
+ "Yntec/Jackpot",
268
+ "digiplay/XRYCJ_RealisticModel",
269
+ "Yntec/C-.-_-.-Aravaggio",
270
+ "digiplay/RunDiffusionFX2.5D_v1_diffusers",
271
+ "Yntec/Stuff",
272
+ "digiplay/NightmareShaper_v2DarkageLobotomy",
273
+ "Yntec/LiberteRedmond",
274
+ "digiplay/nk15_diffusers", #230
275
+ "Yntec/Emoticons",
276
+ "digiplay/xxgSl526_v1",
277
+ "Yntec/BabeBae",
278
+ "digiplay/2-KWI", #213
279
+ "Yntec/SinkOrSwim",
280
+ "digiplay/majicMIXfantasy_v1",
281
+ "Yntec/Nostalgic",
282
+ "digiplay/yiSMix2.8D_v1",
283
+ "Yntec/mixRealisticFantasy",
284
+ "digiplay/hellopure_v2.23",
285
+ "Yntec/Astro_-_-Gemu",
286
+ "digiplay/YabaLMixTrue25D_V1.0",
287
+ "Yntec/StorybookRedmond",
288
+ "digiplay/AnalogMadness-realistic-model-v7", #842
289
+ "Yntec/Cheesecake",
290
+ "digiplay/CuriousMerge2.5D_v40E", #771
291
+ "Yntec/GimmeDatDing",
292
+ "John6666/cookie-run-character-style-v1-sd15-lora", #853
293
+ "Yntec/GenerateMe",
294
+ "digiplay/Hassaku_1.3", #830
295
+ "Yntec/Gacha",
296
+ "Yntec/incha_re_zoro",
297
+ "Yntec/GodMode",
298
+ "Yntec/FantassifiedIcons",
299
+ "Yntec/IncredibleWorld2",
300
+ "Yntec/IncredibleWorld",
301
+ "Yntec/TheDarkNight",
302
+ "Yntec/Cryptids",
303
+ "Yntec/Tantrum",
304
+ "Yntec/CutesyAnime",
305
+ "Yntec/HellSKitchen",
306
+ "Yntec/Kitsch-In-Sync",
307
+ "Yntec/La-dee-dah-.-_",
308
+ "Yntec/HELLmix",
309
+ "Yntec/AnalogMadness4",
310
+ "Yntec/Wonderland",
311
+ "Yntec/Atlas",
312
+ "Yntec/KomowataHaruka",
313
+ "Yntec/FotoPhoto",
314
+ "Yntec/Ambrosia",
315
+ "Yntec/Reliberate",
316
+ "Yntec/BaronMix",
317
+ "Yntec/ChilloutMix",
318
+ "Yntec/Shirayuki",
319
+ "Yntec/foto-assisted-diffusion",
320
+ "Yntec/elldrethSDreamMix",
321
+ "Yntec/mistoonEmerald2",
322
+ "Yntec/AnythingRemix",
323
+ "Yntec/AnalogMadness",
324
+ "Yntec/IronCatFateToons",
325
+ "Yntec/CultClassic", #1K
326
+ "Yntec/samaritan3dCartoon2MVAE", #1K
327
+ "Yntec/Crystalwave", #1k
328
+ "Yntec/Synthwave",
329
+ "Yntec/OG", #1k
330
+ "Yntec/Crayon", #1K
331
+ "Yntec/LuckyStrike", #1K
332
+ "Yntec/Deliberate", #1K
333
+ "Yntec/DeliberateRealisticWoop", #1K
334
+ "Yntec/EstheticRetroAnime", #1K
335
+ "Yntec/DucHaiten-GoldenLife",
336
+ "Yntec/3DCuteWave",
337
+ "Yntec/GoldenEra", #1K
338
+ "Yntec/ClassicEra", #1K
339
+ "Yntec/GoodLife", #1K
340
+ "Yntec/Hassanim", #1K
341
+ "Yntec/DeliberateRemix", #1K
342
+ "Yntec/HassanBlend12", #1K
343
+ "Yntec/HassanBlend1512VAE", #1K
344
+ "Yntec/MangledMerge3_768", #1K
345
+ "Yntec/OpenLexica", #1K
346
+ "Yntec/MapleSyrup", #1K
347
+ "Yntec/iComixRemix", #1K
348
+ "Yntec/SamaritanDoesArt", #1K
349
+ "Yntec/CinemaEros", #1K
350
+ "Yntec/CartoonStyleClassic", #1K
351
+ "Yntec/GalenaVAE", #1K
352
+ "Yntec/a-ZovyaRemix", #1K
353
+ "Yntec/a-ZovyaRPGArtistV2VAE", #2K
354
+ "Yntec/MemeDiffusion", #2K
355
+ "Yntec/Abased", #2k
356
+ "Yntec/SCMix", #2k
357
+ "Yntec/Hassaku", #2k
358
+ "Yntec/m0nst3rfy3", #2k
359
+ "Yntec/PotaytoPotahto", #2K
360
+ "Yntec/3DCute", #2K
361
+ "Yntec/SuperCuteRemix", #2K
362
+ "Yntec/Trending", #2K
363
+ "Yntec/a-ZovyaRPGV3VAE", #3K
364
+ "Yntec/StolenDreams", #3k
365
+ "Yntec/LeyLines", #3k
366
+ "Yntec/SillySymphonies", #3K
367
+ "Yntec/MeinaAlter", #3K
368
+ "Yntec/WoopWoopAnime", #3K
369
+ "Yntec/DreamWorld", #3K
370
+ "Yntec/MGM", #3K
371
+ "Yntec/3DKX/", #3K
372
+ "Yntec/3DKXv11", #3K
373
+ "Yntec/Cute", #3K
374
+ "Yntec/DreamFulV2", #3K
375
+ "Yntec/DucHaitenDarkside4", #3K
376
+ "Yntec/Citrus", #3K
377
+ "Yntec/Classic", #3K
378
+ "Yntec/BasilRemix", #3K
379
+ "Yntec/Yuzu", #4K
380
+ "Yntec/Protogen", #4K
381
+ "Yntec/BeautyFool", #4K
382
+ "Yntec/CyberRealistic", #4K
383
+ "Yntec/Lyriel", #4K
384
+ "Yntec/3DRendering", #4K
385
+ "Yntec/aMovieTrend", #2K
386
+ "Yntec/Dreamscape", #2K
387
+ "Yntec/elldrethSVividMix", #2K
388
+ "Yntec/elldrethSLucidMix", #2K
389
+ "Yntec/CitrineDreamMix", #2K
390
+ "Yntec/elldrethsImagination", #2K
391
+ "Yntec/ReVAnimated768", #2K
392
+ "Yntec/OpenNijiRemix", #2K
393
+ "Yntec/RadiantCinemagic", #2K
394
+ "Yntec/RadiantVibes", #1K
395
+ "Yntec/NeverEndingDream768", #2K
396
+ "Yntec/vividicAnime", #2K
397
+ "Yntec/WoopWoopRemix", #2K
398
+ "Yntec/ArcticFowl", #2K
399
+ "Yntec/CrystalClearRemix", #5k
400
+ "Yntec/CrystalClear", #3k
401
+ "Yntec/Reanimate", #5k
402
+ "Yntec/Deliberate2", #5k
403
+ "Yntec/526", #5k
404
+ "Yntec/526Mix", #5k
405
+ "Yntec/Dreamful3", #5K
406
+ "Yntec/theAllysMixIIIRevolutions", #6k
407
+ "Yntec/UberRealisticLegacy", #6k
408
+ "Yntec/BrandiMilne", #6K
409
+ "Yntec/dosmixVAE", #3K
410
+ "Yntec/aPhotographicTrend", #3K
411
+ "Yntec/BeenYou", #3K
412
+ "Yntec/level4", #3K
413
+ "Yntec/dreamlike-photoreal-remix", #3K
414
+ "Yntec/lamettaRemix", #3K
415
+ "Yntec/lametta", #2K
416
+ "Yntec/AgarthaChadstyle", #7k
417
+ "Yntec/DucHaitenLofi", #7k
418
+ "Yntec/DreamWorks", #7K
419
+ "Yntec/mistoonAnime2", #7K
420
+ "Yntec/DucHaiten-FANCYxFANCY",#7K
421
+ "Yntec/LAMEanime", #8K
422
+ "Yntec/3Danimation", #4K
423
+ "Yntec/DucHaitenNiji", #4K
424
+ "Yntec/Darkside", #4K
425
+ "Yntec/animeTEN", #4K
426
+ "Yntec/Dreamscapes_n_Dragonfire_v2", #4K
427
+ "Yntec/Cetus", #4K
428
+ "Yntec/DeliShaper", #4K
429
+ "Yntec/epiCVision", #4K
430
+ "Yntec/Dreamlike", #3K
431
+ "Yntec/AnythingV4-768", #9k
432
+ "Yntec/makeitdoubleplz", #10k
433
+ "Yntec/ChiliConCarne", #11k
434
+ "Yntec/Dreamshaper8", #12K
435
+ "Yntec/pineappleAnimeMix", #13k
436
+ "Yntec/Oiran", #6K
437
+ "Yntec/RealCartoon3D", #6K
438
+ "Yntec/animeTWO", #6K
439
+ "Yntec/lamettaNightly", #6K
440
+ "Yntec/REV", #6K
441
+ "Yntec/NaughtyChildren", #6K
442
+ "Yntec/humu", #6K
443
+ "Yntec/Thriller", #13K
444
+ "Yntec/AbsoluteRemix", #7K
445
+ "Yntec/Splash", #7K
446
+ "Yntec/OpenGenDiffusers", #7K
447
+ "Yntec/DreamLikeRemix", #7K
448
+ "Yntec/epiCRealismVAE", #8K
449
+ "Yntec/LehinaModel", #8K
450
+ "Yntec/realistic-vision-v12", #14K
451
+ "Yntec/animeSEXTILLION/", #15K
452
+ "Yntec/CetusRemix", #16K
453
+ "Yntec/AnythingV3-768", #18K
454
+ "Yntec/edgeOfRealism", #25K
455
+ "Yntec/fennPhoto", #27k
456
+ "Yntec/aMovieX/", #28K
457
+ "Yntec/photoMovieXFinal", #31K
458
+ "Yntec/nuipenimix2", #34K
459
+ "Yntec/epiCPhotoGasm", #40K
460
+ "Yntec/YiffyMix", #44K
461
+ "Yntec/HitenDiffusion", #2K
462
+ "Yntec/GameAssetsDigitalUnitsCreationKit",
463
+ "Yntec/QToriReloaded",
464
+ "Yntec/Toonify2",
465
+ "Yntec/LunarLuma",
466
+ "Yntec/Lunar",
467
+ "Yntec/Chik2",
468
+ "Yntec/photoMovieRealistic",
469
+ "Yntec/DucHaiten-StyleLikeMeVAE",
470
+ "Yntec/InsaneRealisticCVAE",
471
+ "Yntec/Noosphere_v3_CVAE",
472
+ "Yntec/RealRainbows",
473
+ "Yntec/InsaneM3U",
474
+ "Yntec/ChildrenStoriesAnime",
475
+ "Yntec/theallysMixIV-verisimilar",
476
+ "Yntec/DucHaitenAnime768",
477
+ "Yntec/RainbowClassicAnime",
478
+ "Yntec/DucHaitenClassicAnime768",
479
+ "Yntec/Luma",
480
+ "Yntec/WesternAnimation",
481
+ "Yntec/NeverExisted",
482
+ "Yntec/Rainbowsphere",
483
+ "Yntec/Ninja-Diffusers",
484
+ "Yntec/GOLDFish",
485
+ "Yntec/DreamAnything",
486
+ "Yntec/Dreamsphere",
487
+ "Yntec/Photosphere",
488
+ "Yntec/yabalMixTrue25D_v2_VAE",
489
+ "dreamlike-art/dreamlike-anime-1.0",
490
+ "Yntec/RainbowDreams",
491
+ "Yntec/rainbowpatch",
492
+ "Yntec/DucHaiten-Retro-Diffusers",
493
+ "Yntec/sexyToons",
494
+ "Yntec/photoMovieX/",
495
+ "dreamlike-art/dreamlike-photoreal-2.0",
496
+ "dreamlike-art/dreamlike-diffusion-1.0",
497
+ "Yntec/CuteYuki2",
498
+ "Yntec/KIDSILLUSTRATIONS",
499
+ "Yntec/COOLKIDSV2",
500
+ "Yntec/Pavo-Mix-Diffusers",
501
+ "Yntec/RPG_Remix",
502
+ "Yntec/OrangeRemix",
503
+ "Yntec/PeachMix3",
504
+ "Yntec/samdoesartsUlt",
505
+ "Yntec/NovelAI",
506
+ "Yntec/NovelAIRemix",
507
+ "Yntec/Hiten",
508
+ "digiplay/fCAnimeMix_v6", #776
509
+ "digiplay/YabaLMixAnimeRealistic_V1.0", #754
510
+ "digiplay/WhiteDreamyHillMix_v1", #220
511
+ "digiplay/fCAnimeMix_v4", #747
512
+ "digiplay/HadrianDelice_DeliceV1.5", #743
513
+ "digiplay/fCAnimeMix_v2", #716
514
+ "digiplay/HadrianDelice_BYC1.0", #728
515
+ "digiplay/majicMIX_realistic_v6",
516
+ "digiplay/Noosphere_v4", #723
517
+ "digiplay/PerfectDeliberate-Anime_v1", #724
518
+ "digiplay/CamelliaMIx_2.5D_v1", #695
519
+ "digiplay/CamelliaMIx_2.5D_diffusers", #692
520
+ "digiplay/fantasticmix2.5D_v4.0",
521
+ "digiplay/majicMIX_realistic_v1",
522
+ "digiplay/RunDiffusionFXPhotorealistic_v1",
523
+
524
+ "digiplay/DucHaiten-Real3D-NSFW-V1",
525
+ "digiplay/kencanmix_v1.5",
526
+ "digiplay/ZHMix-Dramatic-v3.0",
527
+ "digiplay/Gap",
528
+ "digiplay/ya3_VAE",
529
+ "digiplay/asyncsMIX_v2",
530
+ "digiplay/fantasticmix_v65_test",
531
+ "digiplay/AingDiffusion8",
532
+ "digiplay/AingDiffusion9",
533
+ "digiplay/AingDiffusion8.5",
534
+ "digiplay/AingDiffusion6",
535
+ "digiplay/AingDiffusion8.17",
536
+ "digiplay/AingDiffusion9.2",
537
+ "digiplay/MeinaMix_v11",
538
+ "AIARTCHAN/AbyssHellHero",
539
+ "digiplay/2K", #216
540
+ "digiplay/MeinaMix_v7",
541
+ "digiplay/futaall_v8_VAE_diffusers",
542
+ "digiplay/Sudachi_diffusers",
543
+ "digiplay/CleanLinearMix_nsfw",
544
+ "digiplay/majicMIX_realistic_v4",
545
+ "digiplay/VersaMix_base_diffusers",
546
+ "digiplay/OldFish_fix1.1.997_diffusers",
547
+ "digiplay/VoidnoiseCore_R0829",
548
+ "digiplay/wantan25D_prototype",
549
+ "digiplay/PotoPhotoRealism_v1",
550
+ "digiplay/LunarDiffusion_v1.27",
551
+ "digiplay/OLDFish_2348_diffusers",
552
+ "digiplay/OldFish_v1.1_diffusers_recover",
553
+ "digiplay/OldFish_v1.1mix_hello",
554
+ "digiplay/OldFish_v1.1_personal_HDmix",
555
+ "digiplay/FishMix_v1",
556
+ "digiplay/Yntec_Wonder_0508_DDIM", #818
557
+ "John6666/juggernaut-reborn-sd15", #860
558
+ "digiplay/AnalogMadness-realistic-model-v6", #862
559
+ "DucHaiten/DucHaitenDreamWorld",
560
+ "digiplay/LemonteaMixPainterly2_v1",
561
+ "Hius/DreamFul-V2",
562
+ "lambdalabs/sd-naruto-diffusers", #201
563
+ "digiplay/SweetMuse_diffusers",
564
+ "stablediffusionapi/icomix-2",
565
+ "digiplay/Realisian_v1",
566
+ "digiplay/RMHF_2.5D_v2",
567
+ "digiplay/Remedy",
568
+ "Hemlok/QuinceMix",
569
+ "digiplay/K-main",
570
+ "digiplay/perfectLewdFantasy_v1.01",
571
+ "digiplay/Opiate_v2",
572
+ "digiplay/PhotoSomnia_vFinal",
573
+ "stablediffusionapi/all-526-animated",
574
+ "digiplay/polla_mix_2.5D",
575
+ "AstraliteHeart/pony-diffusion",
576
+ "stablediffusionapi/chilloutmixsf",
577
+ "Masagin/Deliberate", #235
578
+ "DucHaiten/DucHaitenSuperCute",
579
+ "stablediffusionapi/all-526",
580
+ "theintuitiveye/HARDblend",
581
+ "stablediffusionapi/cyberrealistic",
582
+ "stablediffusionapi/cusp-of-serenity",
583
+ "SG161222/Realistic_Vision_V1.4",
584
+ "digiplay/paulEberSRealismMix_v1",
585
+
586
+ "LottePeisch/RevAnimated-Diffusers", #833
587
+ "hassanblend/hassanblend1.4",
588
+ "digiplay/zodiac_eclipse_DAY1",
589
+ "claudfuen/photorealistic-fuen-v1",
590
+ "stablediffusionapi/chillout-app-factory",
591
+ "DucHaiten/DucHaitenJourney",
592
+ "robotjung/SemiRealMix",
593
+ "Joeythemonster/anything-midjourney-v-4-1",
594
+ "prompthero/midjourney-v4-diffusion",
595
+ "prompthero/openjourney-v4",
596
+ "x67/shortjourney",
597
+ "FredZhang7/paint-journey-v2",
598
+ "digiplay/PersonaStyleCheckpoint",
599
+ "darkstorm2150/Protogen_Infinity_Official_Release",
600
+ "PeggyWang/openjourney-v2",
601
+ "darkstorm2150/Protogen_x3.4_Official_Release",
602
+ "stablediffusionapi/deliberateappfactory", #236
603
+ "digiplay/CrossoverMix_v2",
604
+ "stablediffusionapi/spybg",
605
+ "stablediffusionapi/dreamshaper-v6", #239
606
+ "stablediffusionapi/the-ally",
607
+ "darkstorm2150/Protogen_x5.8_Official_Release",
608
+ "coreco/seek.art_MEGA",
609
+ "digiplay/BlankCanvas_v1", #07.11
610
+ "digiplay/OnlyAnime_v2.3",
611
+ "Korakoe/OpenNiji",
612
+ "digiplay/Pika_v2",
613
+ "digiplay/RealCartoon3D_F16full_v3.1", #254
614
+ "digiplay/realidefmix_3.5VAE",
615
+ "digiplay/realmixUnrealjourney_v1",
616
+ "digiplay/SyncMix_v1.5",
617
+ "stablediffusionapi/chilledremixsazyou-r", #195
618
+ "digiplay/TWingshadow_v1.2",
619
+ "digiplay/whatamix_v1",
620
+
621
+ "digiplay/AIGEN_v1.4_diffusers",
622
+ "digiplay/BrickAndMortarMix_v2.0_diffusers", #224
623
+ "digiplay/BeautyFool_v1.2VAE_pruned",
624
+ "digiplay/breakdomainrealistic_R2333",
625
+ "digiplay/ChikMix_V3", #253
626
+ "digiplay/CityEdge_StyleMix_v1.44",
627
+ "stablediffusionapi/dalcefopainting2", #199
628
+ "digiplay/DiamondCoalMix_v2_pruned_diffusers",
629
+ "digiplay/DreamShaper_7", #259
630
+ "digiplay/elegantEntropy_v1.1", #221
631
+ "digiplay/KawaiiRealisticAnimeMix_A0.3",
632
+ "digiplay/highQualityCGMIX_v1",
633
+ "digiplay/HIMAWARI_v1",
634
+ "digiplay/Hodgepodge_v2.1", #217
635
+ "digiplay/illustro1stEdition_illustroV1", #214
636
+ "digiplay/Juggernaut_final", #07.11
637
+ "digiplay/Landscape_PhotoReal_v1",
638
+ "digiplay/LuckyStrikeMix0.2Realistic", #07.10
639
+ "digiplay/Matrix_Stellar_VAE_v1",
640
+ "digiplay/PrefixRealisticMix_v1",
641
+ "digiplay/RealEpicMajicRevolution_v1", #07.11
642
+ "digiplay/ShampooMix_4", #252
643
+ "digiplay/ShowmakerMix_v1",
644
+ "digiplay/SoapMix2.5D_v1",
645
+
646
+ "Redamancy2299/dreambooth",
647
+ "Lykon/DreamShaper", #240
648
+ "trysem/DreamShaper-3.3",
649
+ "HusseinHE/hussein-deliberate-1000steps", #237
650
+ "stablediffusionapi/majicmixfantasy",
651
+ "stablediffusionapi/majicmixsombre", #247
652
+ "wavymulder/modelshoot",
653
+ "digiplay/ChillyMix_v1", #215
654
+ "stablediffusionapi/foto-assisted-diffusion", #197
655
+ "wavymulder/portraitplus",
656
+ "stablediffusionapi/chilloutmix-4264",
657
+ "stablediffusionapi/product-design", #194
658
+ "kandinsky-community/kandinsky-2-1", #251
659
+
660
+ "digiplay/2.5DSET_diffusers", #227
661
+ "digiplay/alstroemeriaMix_v1",
662
+ "wavymulder/Analog-Diffusion",
663
+ "digiplay/AniRealityMix_v1", #257
664
+ "digiplay/BasilKorea_v2", #07.11
665
+ "digiplay/bluePencilRealistic_v01",
666
+ "digiplay/bra_v40_diffusers",
667
+ "digiplay/Burger_Mix_semiR2Lite", #222
668
+ "digiplay/calicomixreal_v2.0_diffusers",
669
+ "digiplay/CampurSari_Gen1",
670
+ "digiplay/cocotifacute_v1", #07.10
671
+ "digiplay/CounterMix_v2", #211
672
+ "digiplay/CuriousMerge2.5D_v5",
673
+ "digiplay/dosmix",
674
+ "digiplay/epi_2.5Dphotogodess_diffusers",
675
+ "stablediffusionapi/droodlyrielv15",
676
+ "digiplay/fantexi_v0.7",
677
+ "digiplay/FormCleansingMix_v1", #228
678
+ "digiplay/FumizukiMix_v1",
679
+ "digiplay/helloworld_v3",
680
+ "digiplay/ISOmix_v3.22",
681
+ "digiplay/JF-Cu_v1",
682
+ "digiplay/kencanmix_v2.0beta",
683
+ "wavymulder/lomo-diffusion",
684
+ "stablediffusionapi/majicmixv5", #192
685
+ "digiplay/mecha_musume_vivid_soft",
686
+ "digiplay/MiracleMixGlitter_v1",
687
+ "digiplay/NextPhoto_v1",
688
+ "digiplay/Noosphere_v3",
689
+ "digiplay/PeachMixsRelistic_R0", #262
690
+ "wavymulder/timeless-diffusion",
691
+ "digiplay/WhiteDreamyHillMix_v1", #220
692
+
693
+ "DucHaiten/DucHaitenAnime",
694
+ "DucHaiten/DucHaitenAIart",
695
+ "digiplay/BeenYouLiteL11_diffusers",
696
+ "Manseo/Colorful-v4.5-Plus", #244
697
+ "Guizmus/SDArt_ChaosAndOrder",
698
+ "DucHaiten/DH_ClassicAnime",
699
+ "stablediffusionapi/disneypixar",
700
+ "johnslegers/epic-diffusion-v1.1",
701
+ "emilianJR/epiCRealism",
702
+ "johnslegers/epic-diffusion",
703
+ "digiplay/fantasticAnime_diffusers",
704
+ "stablediffusionapi/ghostmix",
705
+ "Duskfallcrew/EpicMix_Realism",
706
+ "nitrosocke/Nitro-Diffusion",
707
+ "prompthero/openjourney",
708
+ "Guizmus/SDArt_something",
709
+ "DucHaiten/DucHaiten-StyleLikeMe",
710
+ "ddPn08/subtly", #250
711
+ "22h/vintedois-diffusion-v0-1",
712
+
713
+ "circulus/sd-anireal-v2.7",
714
+ "0xJustin/Dungeons-and-Diffusion",
715
+ "darkstorm2150/Protogen_v2.2_Official_Release",
716
+ "Guizmus/SDArt_AliceInDiffusionLand",
717
+ "stablediffusionapi/realistic-vision-v20-2047",
718
+ "redstonehero/RPG-v5-itr17_A10T",
719
+
720
+ "stablediffusionapi/camelliamix25d",
721
+ "Guizmus/SDArt_cosmichorrors",
722
+ "DGSpitzer/DGSpitzer-Art-Diffusion",
723
+ "stablediffusionapi/emotion-puppeteer-v2",
724
+ "stablediffusionapi/fengjing",
725
+ "stablediffusionapi/fuwafuwamix",
726
+ "Fred99774/girlnew1",
727
+ "stablediffusionapi/majicmixrealistic",
728
+ "badmonk/nxka",
729
+ "ItsJayQz/SynthwavePunk-v2",
730
+ "zhyemmmm/ToonYou",
731
+ "stablediffusionapi/uber-realistic-merge",
732
+ "stablediffusionapi/vne732h9dh4",
733
+ "stablediffusionapi/wand-magic2",
734
+ "stablediffusionapi/waifu-journey-2",
735
+ "stablediffusionapi/zovya",
736
+
737
+ "Guizmus/SDArt_cosmichorrors768",
738
+ "stablediffusionapi/counterfeit-v30",
739
+ "stablediffusionapi/amireal",
740
+ #"JamesFlare/pastel-mix", #"andite/pastel-mix",
741
+ "stablediffusionapi/rev-anim",
742
+ "aipicasso/picasso-diffusion-1-1",
743
+ "xiaolxl/Gf_style2",
744
+ "circulus/sd-semireal-v2.8",
745
+ "Crosstyan/BPModel", #07.11
746
+
747
+ "digiplay/Dusk-1",
748
+ "ogkalu/Comic-Diffusion",
749
+ "Guizmus/SDArt_ChaosAndOrder768",
750
+ "gsdf/Counterfeit-V2.0",
751
+ "dwancin/memoji", #07.11
752
+ "nousr/robo-diffusion-2-base",
753
+
754
+ ##"hakurei/waifu-diffusion",
755
+ "WarriorMama777/AbyssOrangeMix2",
756
+ "stablediffusionapi/abyssorangemix2nsfw", #200
757
+ ##"cag/anything-v3-1",
758
+ "iZELX1/Anything-V3-X",
759
+ "xyn-ai/anything-v4.0", #"andite/anything-v4.0",
760
+ #"D1b4l4p/AsianMix",
761
+ #"Fred99774/chilloutvlara",
762
+ "aipicasso/cool-japan-diffusion-2-1-2",
763
+ "stablediffusionapi/corneos-7th-heaven-m", #196
764
+ "DGSpitzer/Cyberpunk-Anime-Diffusion",
765
+ "stablediffusionapi/dark-sushi-mix",
766
+ "joachimsallstrom/Double-Exposure-Diffusion",
767
+ "eimiss/EimisAnimeDiffusion_1.0v",
768
+ #"prompthero/funko-diffusion",
769
+ "nitrosocke/Ghibli-Diffusion",
770
+ ###"iZELX1/Grapefruit",
771
+ "xiaolxl/GuoFeng3",
772
+ "stablediffusionapi/tmnd-mix",
773
+ "coder119/Vectorartz_Diffusion", #203
774
+
775
+ "WarriorMama777/AbyssOrangeMix",
776
+ "AIARTCHAN/7pa",
777
+ "JosephusCheung/ACertainModel",
778
+ "JosephusCheung/ACertainThing",
779
+ "JosephusCheung/ACertainty",
780
+ "AIARTCHAN/AbyssHellVer3",
781
+ "AIARTCHAN/AbyssMapleVer3",
782
+ "stablediffusionapi/abyssorangemixsfw",
783
+ "AIARTCHAN/anidosmixV2",
784
+ "stablediffusionapi/anime-model-v2",
785
+ "kubanemil/AnyLORA",
786
+ "stablediffusionapi/hc-anything-v3-vae", #231
787
+ "mm00/anything-v3.0-light",
788
+ "stablediffusionapi/anythingelse-v4",
789
+ "stablediffusionapi/anything-v45-fixed",
790
+ "stablediffusionapi/anything-v5",
791
+ "nitrosocke/Arcane-Diffusion",
792
+ "nitrosocke/archer-diffusion",
793
+ "stablediffusionapi/architecture-tuned-model",
794
+ "WarriorMama777/BloodOrangeMix",
795
+ "wavymulder/collage-diffusion",
796
+ "stablediffusionapi/camelliamixline",
797
+ "digiplay/CiderMix_ciderR", #260
798
+ "Johnhex/Clam", #243
799
+ "stablediffusionapi/cosmic-babes",
800
+ "digiplay/CoffeeDonut_v1",
801
+ "stablediffusionapi/dark-sushi-25d",
802
+ "digiplay/Defacta_v1_diffusers", #226
803
+ ## "WarriorMama777/EerieOrangeMix",
804
+ "digiplay/DuelAnimeMix_v1", #225
805
+ "Envvi/Inkpunk-Diffusion",
806
+ "digiplay/kotosmix_diffusers", #229
807
+ "stablediffusionapi/meinaalter",
808
+ "Nacholmo/meinamixv7-diffusers",
809
+ "stablediffusionapi/meinapastel",
810
+ "AIARTCHAN/MIX-Pro-V4",
811
+ "stablediffusionapi/shirataki-mix", #191
812
+ "NoCrypt/SomethingV2_2",
813
+ "NoCrypt/SomethingV2",
814
+ "badmonk/sxzumi",
815
+ ## "stablediffusionapi/three-delicacy",
816
+ ## "stablediffusionapi/three-delicacy-wonto",
817
+ "etherealxx/systemy-csrmodel-cutesexyrobutts", #"andite/cutesexyrobutts-diffusion",
818
+ "sd-dreambooth-library/true-guweiz-style", # "andite/guweiz-diffusion",
819
+ "stablediffusionapi/vector-art", #198
820
+ "digiplay/xxMix_4",
821
+ ###"mio/hiten", #"andite/hiten-diffusion",
822
+ ### "andite/mashuu-diffusion",
823
+ ### "andite/mignon-diffusion",
824
+ ### "andite/mikapikazo-diffusion",
825
+ ### "andite/piromizu-diffusion",
826
+ "digiplay/Zevinemix_v1.0/",
827
+
828
+ "digiplay/AnaMix_v2", #07.11
829
+ "stablediffusionapi/animetestmodelv3",
830
+ "yulet1de/anything", #232
831
+ "hakurei/artstation-diffusion", #07.11
832
+ "Fictiverse/Stable_Diffusion_BalloonArt_Model",
833
+ "stablediffusionapi/bg-dream-irl",
834
+ "stablediffusionapi/bg-dream-model-b", #193
835
+ "Rardilit/Ciffusion_v0.1",
836
+ "circulus/sd-anireal-2d-v2",
837
+ "circulus/sd-photoreal-v2.7",
838
+ "circulus/sd-photoreal-photo-v2",
839
+ "circulus/sd-anireal-2.5d-v2",
840
+ "circulus/sd-anireal-v2.5",
841
+ "circulus/sd-photoreal-semi-v2",
842
+ "circulus/sd-photoreal-real-v2",
843
+ "circulus/sd-photoreal-v2.5",
844
+ "circulus/sd-anireal-3d-v2",
845
+ "circulus/sd-anireal-v2.8",
846
+ "nitrosocke/classic-anim-diffusion",
847
+ "Conflictx/Complex-Lineart", #245
848
+ "justinpinkney/pokemon-stable-diffusion",
849
+ "nitrosocke/elden-ring-diffusion",
850
+ "digiplay/EtherBluMix_1", #07.11
851
+ "digiplay/fantasticmix_v40_test", #261
852
+ "theintuitiveye/FantasyMix",
853
+ "Fictiverse/Stable_Diffusion_FluidArt_Model",
854
+ "nitrosocke/Future-Diffusion",
855
+ "ItsJayQz/GTA5_Artwork_Diffusion", #205
856
+ "TheLastBen/hrrzg-style-768px", #246
857
+ "nevernotsean/IllustratedPaperMini", #242
858
+ "dallinmackay/JWST-Deep-Space-diffusion",
859
+ #"prompthero/linkedin-diffusion",
860
+ "mann-e/mann-e_4_rev-0-1", #210
861
+ "ItsJayQz/Marvel_WhatIf_Diffusion", #206
862
+ "yuanbit/max-15-1e-6-1500",
863
+ "MyneFactory/MF-Base", #248
864
+ "Fictiverse/Stable_Diffusion_Microscopic_model", #249
865
+ "nitrosocke/mo-di-diffusion",
866
+ "luongphamit/NeverEnding-Dream2", #241
867
+ "Vernon-2/output_test",
868
+ "Fictiverse/Stable_Diffusion_PaperCut_Model",
869
+ "bsuutari/path_to_saved_model",
870
+ "bsuutari/path_to_saved_model_rafa",
871
+ "lambdalabs/sd-pokemon-diffusers", #202
872
+ "prompthero/poolsuite-diffusion",
873
+ "digiplay/RealismEngine_v1",
874
+ "nitrosocke/redshift-diffusion",
875
+ "nitrosocke/redshift-diffusion-768",
876
+ "nousr/robo-diffusion",
877
+ "digiplay/SDVN1-Real_v1", #255
878
+ "nitrosocke/spider-verse-diffusion",
879
+ #"runwayml/stable-diffusion-v1-5",
880
+ "nicky007/stable-diffusion-logo-fine-tuned",
881
+ "stablediffusionapi/three-delicacy", #233
882
+ "stablediffusionapi/three-delicacy-wonto", #234
883
+ "naclbit/trinart_stable_diffusion_v2",
884
+ "dallinmackay/Tron-Legacy-diffusion",
885
+ "digiplay/unstableDiffusersYamerMIX_v3",
886
+ "dallinmackay/Van-Gogh-diffusion",
887
+ "ItsJayQz/Valorant_Diffusion",
888
+ "Fictiverse/Stable_Diffusion_VoxelArt_Model", #204
889
+ "wavymulder/wavyfusion",
890
+ "Yntec/HassanRemix",
891
+ "Yntec/Reddit",
892
+ "Yntec/CinematicReality",
893
+ "runwayml/stable-diffusion-v1-5", #555
894
+ "CompVis/stable-diffusion-v1-4", #530
895
+ "CompVis/stable-diffusion-v1-3", #207
896
+ "CompVis/stable-diffusion-v1-2", #208
897
+ "CompVis/stable-diffusion-v1-1", #209
898
+ ]
899
+
900
+
901
+ from externalmod import find_model_list
902
+
903
+ #models = find_model_list("Yntec", [], "", "last_modified", 20)
904
+
905
+ # Examples:
906
+ #models = ['yodayo-ai/kivotos-xl-2.0', 'yodayo-ai/holodayo-xl-2.1'] # specific models
907
+ #models = find_model_list("Yntec", [], "", "last_modified", 20) # Yntec's latest 20 models
908
+ #models = find_model_list("Yntec", ["anime"], "", "last_modified", 20) # Yntec's latest 20 models with 'anime' tag
909
+ #models = find_model_list("Yntec", [], "anime", "last_modified", 20) # Yntec's latest 20 models without 'anime' tag
910
+ #models = find_model_list("", [], "", "last_modified", 20) # latest 20 text-to-image models of huggingface
911
+ #models = find_model_list("", [], "", "downloads", 20) # monthly most downloaded 20 text-to-image models of huggingface
app.py ADDED
@@ -0,0 +1,213 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from random import randint
3
+ from all_models import models
4
+ from externalmod import gr_Interface_load
5
+ import asyncio
6
+ import os
7
+ from threading import RLock
8
+ lock = RLock()
9
+ HF_TOKEN = os.environ.get("HF_TOKEN") if os.environ.get("HF_TOKEN") else None # If private or gated models aren't used, ENV setting is unnecessary.
10
+
11
+
12
+ def load_fn(models):
13
+ global models_load
14
+ models_load = {}
15
+ for model in models:
16
+ if model not in models_load.keys():
17
+ try:
18
+ m = gr_Interface_load(f'models/{model}', hf_token=HF_TOKEN)
19
+ except Exception as error:
20
+ print(error)
21
+ m = gr.Interface(lambda: None, ['text'], ['image'])
22
+ models_load.update({model: m})
23
+
24
+
25
+ load_fn(models)
26
+
27
+
28
+ num_models = 6
29
+ max_images = 6
30
+ inference_timeout = 300
31
+ default_models = models[:num_models]
32
+ MAX_SEED = 2**32-1
33
+
34
+
35
+ def extend_choices(choices):
36
+ return choices[:num_models] + (num_models - len(choices[:num_models])) * ['NA']
37
+
38
+
39
+ def update_imgbox(choices):
40
+ choices_plus = extend_choices(choices[:num_models])
41
+ return [gr.Image(None, label=m, visible=(m!='NA')) for m in choices_plus]
42
+
43
+
44
+ def random_choices():
45
+ import random
46
+ random.seed()
47
+ return random.choices(models, k=num_models)
48
+
49
+
50
+ # https://huggingface.co/docs/api-inference/detailed_parameters
51
+ # https://huggingface.co/docs/huggingface_hub/package_reference/inference_client
52
+ async def infer(model_str, prompt, nprompt="", height=None, width=None, steps=None, cfg=None, seed=-1, timeout=inference_timeout):
53
+ from pathlib import Path
54
+ kwargs = {}
55
+ if height is not None and height >= 256: kwargs["height"] = height
56
+ if width is not None and width >= 256: kwargs["width"] = width
57
+ if steps is not None and steps >= 1: kwargs["num_inference_steps"] = steps
58
+ if cfg is not None and cfg > 0: cfg = kwargs["guidance_scale"] = cfg
59
+ noise = ""
60
+ if seed >= 0: kwargs["seed"] = seed
61
+ else:
62
+ rand = randint(1, 500)
63
+ for i in range(rand):
64
+ noise += " "
65
+ task = asyncio.create_task(asyncio.to_thread(models_load[model_str].fn,
66
+ prompt=f'{prompt} {noise}', negative_prompt=nprompt, **kwargs, token=HF_TOKEN))
67
+ await asyncio.sleep(0)
68
+ try:
69
+ result = await asyncio.wait_for(task, timeout=timeout)
70
+ except asyncio.TimeoutError as e:
71
+ print(e)
72
+ print(f"Task timed out: {model_str}")
73
+ if not task.done(): task.cancel()
74
+ result = None
75
+ raise Exception(f"Task timed out: {model_str}")
76
+ except Exception as e:
77
+ print(e)
78
+ if not task.done(): task.cancel()
79
+ result = None
80
+ raise Exception(e)
81
+ if task.done() and result is not None and not isinstance(result, tuple):
82
+ with lock:
83
+ png_path = "image.png"
84
+ result.save(png_path)
85
+ image = str(Path(png_path).resolve())
86
+ return image
87
+ return None
88
+
89
+
90
+ def gen_fn(model_str, prompt, nprompt="", height=None, width=None, steps=None, cfg=None, seed=-1):
91
+ try:
92
+ loop = asyncio.new_event_loop()
93
+ result = loop.run_until_complete(infer(model_str, prompt, nprompt,
94
+ height, width, steps, cfg, seed, inference_timeout))
95
+ except (Exception, asyncio.CancelledError) as e:
96
+ print(e)
97
+ print(f"Task aborted: {model_str}")
98
+ result = None
99
+ raise gr.Error(f"Task aborted: {model_str}, Error: {e}")
100
+ finally:
101
+ loop.close()
102
+ return result
103
+
104
+
105
+ def add_gallery(image, model_str, gallery):
106
+ if gallery is None: gallery = []
107
+ with lock:
108
+ if image is not None: gallery.insert(0, (image, model_str))
109
+ return gallery
110
+
111
+
112
+ CSS="""
113
+ .gradio-container { max-width: 1200px; margin: 0 auto; !important; }
114
+ .output { width=112px; height=112px; max_width=112px; max_height=112px; !important; }
115
+ .gallery { min_width=512px; min_height=512px; max_height=1024px; !important; }
116
+ .guide { text-align: center; !important; }
117
+ """
118
+
119
+
120
+ with gr.Blocks(theme='Nymbo/Nymbo_Theme', fill_width=True, css=CSS) as demo:
121
+ with gr.Tab('The Dream'):
122
+ with gr.Column(scale=2):
123
+ with gr.Group():
124
+ txt_input = gr.Textbox(label='Your prompt:', lines=4)
125
+ neg_input = gr.Textbox(label='Negative prompt:', lines=1)
126
+ with gr.Accordion("Advanced", open=False, visible=True):
127
+ with gr.Row():
128
+ width = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
129
+ height = gr.Slider(label="Height", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
130
+ with gr.Row():
131
+ steps = gr.Slider(label="Number of inference steps", info="If 0, the default value is used.", maximum=100, step=1, value=0)
132
+ cfg = gr.Slider(label="Guidance scale", info="If 0, the default value is used.", maximum=30.0, step=0.1, value=0)
133
+ seed = gr.Slider(label="Seed", info="Randomize Seed if -1.", minimum=-1, maximum=MAX_SEED, step=1, value=-1)
134
+ with gr.Row():
135
+ gen_button = gr.Button(f'Generate up to {int(num_models)} images in up to 3 minutes total', variant='primary', scale=3)
136
+ random_button = gr.Button(f'Random {int(num_models)} 🎲', variant='secondary', scale=1)
137
+ #stop_button = gr.Button('Stop', variant='stop', interactive=False, scale=1)
138
+ #gen_button.click(lambda: gr.update(interactive=True), None, stop_button)
139
+ gr.Markdown("Scroll down to see more images and select models.", elem_classes="guide")
140
+
141
+ with gr.Column(scale=1):
142
+ with gr.Group():
143
+ with gr.Row():
144
+ output = [gr.Image(label=m, show_download_button=True, elem_classes="output",
145
+ interactive=False, min_width=80, show_share_button=False, format="png",
146
+ visible=True) for m in default_models]
147
+ current_models = [gr.Textbox(m, visible=False) for m in default_models]
148
+
149
+ with gr.Column(scale=2):
150
+ gallery = gr.Gallery(label="Output", show_download_button=True, elem_classes="gallery",
151
+ interactive=False, show_share_button=True, container=True, format="png",
152
+ preview=True, object_fit="cover", columns=2, rows=2)
153
+
154
+ for m, o in zip(current_models, output):
155
+ gen_event = gr.on(triggers=[gen_button.click, txt_input.submit], fn=gen_fn,
156
+ inputs=[m, txt_input, neg_input, height, width, steps, cfg, seed], outputs=[o], concurrency_limit=None, queue=False)
157
+ o.change(add_gallery, [o, m, gallery], [gallery])
158
+ #stop_button.click(lambda: gr.update(interactive=False), None, stop_button, cancels=[gen_event])
159
+
160
+ with gr.Column(scale=4):
161
+ with gr.Accordion('Model selection'):
162
+ model_choice = gr.CheckboxGroup(models, label = f'Choose up to {int(num_models)} different models from the {len(models)} available!', value=default_models, interactive=True)
163
+ model_choice.change(update_imgbox, model_choice, output)
164
+ model_choice.change(extend_choices, model_choice, current_models)
165
+ random_button.click(random_choices, None, model_choice)
166
+
167
+ with gr.Tab('Single model'):
168
+ with gr.Column(scale=2):
169
+ model_choice2 = gr.Dropdown(models, label='Choose model', value=models[0])
170
+ with gr.Group():
171
+ txt_input2 = gr.Textbox(label='Your prompt:', lines=4)
172
+ neg_input2 = gr.Textbox(label='Negative prompt:', lines=1)
173
+ with gr.Accordion("Advanced", open=False, visible=True):
174
+ with gr.Row():
175
+ width2 = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
176
+ height2 = gr.Slider(label="Height", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
177
+ with gr.Row():
178
+ steps2 = gr.Slider(label="Number of inference steps", info="If 0, the default value is used.", maximum=100, step=1, value=0)
179
+ cfg2 = gr.Slider(label="Guidance scale", info="If 0, the default value is used.", maximum=30.0, step=0.1, value=0)
180
+ seed2 = gr.Slider(label="Seed", info="Randomize Seed if -1.", minimum=-1, maximum=MAX_SEED, step=1, value=-1)
181
+ num_images = gr.Slider(1, max_images, value=max_images, step=1, label='Number of images')
182
+ with gr.Row():
183
+ gen_button2 = gr.Button('Generate', variant='primary', scale=2)
184
+ #stop_button2 = gr.Button('Stop', variant='stop', interactive=False, scale=1)
185
+ #gen_button2.click(lambda: gr.update(interactive=True), None, stop_button2)
186
+
187
+ with gr.Column(scale=1):
188
+ with gr.Group():
189
+ with gr.Row():
190
+ output2 = [gr.Image(label='', show_download_button=True, elem_classes="output",
191
+ interactive=False, min_width=80, visible=True, format="png",
192
+ show_share_button=False, show_label=False) for _ in range(max_images)]
193
+
194
+ with gr.Column(scale=2):
195
+ gallery2 = gr.Gallery(label="Output", show_download_button=True, elem_classes="gallery",
196
+ interactive=False, show_share_button=True, container=True, format="png",
197
+ preview=True, object_fit="cover", columns=2, rows=2)
198
+
199
+ for i, o in enumerate(output2):
200
+ img_i = gr.Number(i, visible=False)
201
+ num_images.change(lambda i, n: gr.update(visible = (i < n)), [img_i, num_images], o, queue=False)
202
+ gen_event2 = gr.on(triggers=[gen_button2.click, txt_input2.submit],
203
+ fn=lambda i, n, m, t1, t2, n1, n2, n3, n4, n5: gen_fn(m, t1, t2, n1, n2, n3, n4, n5) if (i < n) else None,
204
+ inputs=[img_i, num_images, model_choice2, txt_input2, neg_input2,
205
+ height2, width2, steps2, cfg2, seed2], outputs=[o], concurrency_limit=None, queue=False)
206
+ o.change(add_gallery, [o, model_choice2, gallery2], [gallery2])
207
+ #stop_button2.click(lambda: gr.update(interactive=False), None, stop_button2, cancels=[gen_event2])
208
+
209
+ gr.Markdown("Based on the [TestGen](https://huggingface.co/spaces/derwahnsinn/TestGen) Space by derwahnsinn, the [SpacIO](https://huggingface.co/spaces/RdnUser77/SpacIO_v1) Space by RdnUser77 and Omnibus's Maximum Multiplier!")
210
+
211
+ demo.queue(default_concurrency_limit=200, max_size=200)
212
+ demo.launch(show_api=False, max_threads=400)
213
+ # https://github.com/gradio-app/gradio/issues/6339
externalmod.py ADDED
@@ -0,0 +1,585 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """This module should not be used directly as its API is subject to change. Instead,
2
+ use the `gr.Blocks.load()` or `gr.load()` functions."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import json
7
+ import os
8
+ import re
9
+ import tempfile
10
+ import warnings
11
+ from pathlib import Path
12
+ from typing import TYPE_CHECKING, Callable, Literal
13
+
14
+ import httpx
15
+ import huggingface_hub
16
+ from gradio_client import Client
17
+ from gradio_client.client import Endpoint
18
+ from gradio_client.documentation import document
19
+ from packaging import version
20
+
21
+ import gradio
22
+ from gradio import components, external_utils, utils
23
+ from gradio.context import Context
24
+ from gradio.exceptions import (
25
+ GradioVersionIncompatibleError,
26
+ ModelNotFoundError,
27
+ TooManyRequestsError,
28
+ )
29
+ from gradio.processing_utils import save_base64_to_cache, to_binary
30
+
31
+ if TYPE_CHECKING:
32
+ from gradio.blocks import Blocks
33
+ from gradio.interface import Interface
34
+
35
+
36
+ HF_TOKEN = os.environ.get("HF_TOKEN") if os.environ.get("HF_TOKEN") else None # If private or gated models aren't used, ENV setting is unnecessary.
37
+ server_timeout = 600
38
+
39
+
40
+ @document()
41
+ def load(
42
+ name: str,
43
+ src: str | None = None,
44
+ hf_token: str | Literal[False] | None = None,
45
+ alias: str | None = None,
46
+ **kwargs,
47
+ ) -> Blocks:
48
+ """
49
+ Constructs a demo from a Hugging Face repo. Can accept model repos (if src is "models") or Space repos (if src is "spaces"). The input
50
+ and output components are automatically loaded from the repo. Note that if a Space is loaded, certain high-level attributes of the Blocks (e.g.
51
+ custom `css`, `js`, and `head` attributes) will not be loaded.
52
+ Parameters:
53
+ name: the name of the model (e.g. "gpt2" or "facebook/bart-base") or space (e.g. "flax-community/spanish-gpt2"), can include the `src` as prefix (e.g. "models/facebook/bart-base")
54
+ src: the source of the model: `models` or `spaces` (or leave empty if source is provided as a prefix in `name`)
55
+ hf_token: optional access token for loading private Hugging Face Hub models or spaces. Will default to the locally saved token if not provided. Pass `token=False` if you don't want to send your token to the server. Find your token here: https://huggingface.co/settings/tokens. Warning: only provide a token if you are loading a trusted private Space as it can be read by the Space you are loading.
56
+ alias: optional string used as the name of the loaded model instead of the default name (only applies if loading a Space running Gradio 2.x)
57
+ Returns:
58
+ a Gradio Blocks object for the given model
59
+ Example:
60
+ import gradio as gr
61
+ demo = gr.load("gradio/question-answering", src="spaces")
62
+ demo.launch()
63
+ """
64
+ return load_blocks_from_repo(
65
+ name=name, src=src, hf_token=hf_token, alias=alias, **kwargs
66
+ )
67
+
68
+
69
+ def load_blocks_from_repo(
70
+ name: str,
71
+ src: str | None = None,
72
+ hf_token: str | Literal[False] | None = None,
73
+ alias: str | None = None,
74
+ **kwargs,
75
+ ) -> Blocks:
76
+ """Creates and returns a Blocks instance from a Hugging Face model or Space repo."""
77
+ if src is None:
78
+ # Separate the repo type (e.g. "model") from repo name (e.g. "google/vit-base-patch16-224")
79
+ tokens = name.split("/")
80
+ if len(tokens) <= 1:
81
+ raise ValueError(
82
+ "Either `src` parameter must be provided, or `name` must be formatted as {src}/{repo name}"
83
+ )
84
+ src = tokens[0]
85
+ name = "/".join(tokens[1:])
86
+
87
+ factory_methods: dict[str, Callable] = {
88
+ # for each repo type, we have a method that returns the Interface given the model name & optionally an hf_token
89
+ "huggingface": from_model,
90
+ "models": from_model,
91
+ "spaces": from_spaces,
92
+ }
93
+ if src.lower() not in factory_methods:
94
+ raise ValueError(f"parameter: src must be one of {factory_methods.keys()}")
95
+
96
+ if hf_token is not None and hf_token is not False:
97
+ if Context.hf_token is not None and Context.hf_token != hf_token:
98
+ warnings.warn(
99
+ """You are loading a model/Space with a different access token than the one you used to load a previous model/Space. This is not recommended, as it may cause unexpected behavior."""
100
+ )
101
+ Context.hf_token = hf_token
102
+
103
+ blocks: gradio.Blocks = factory_methods[src](name, hf_token, alias, **kwargs)
104
+ return blocks
105
+
106
+
107
+ def from_model(
108
+ model_name: str, hf_token: str | Literal[False] | None, alias: str | None, **kwargs
109
+ ):
110
+ model_url = f"https://huggingface.co/{model_name}"
111
+ api_url = f"https://api-inference.huggingface.co/models/{model_name}"
112
+ print(f"Fetching model from: {model_url}")
113
+
114
+ headers = (
115
+ {} if hf_token in [False, None] else {"Authorization": f"Bearer {hf_token}"}
116
+ )
117
+ response = httpx.request("GET", api_url, headers=headers)
118
+ if response.status_code != 200:
119
+ raise ModelNotFoundError(
120
+ f"Could not find model: {model_name}. If it is a private or gated model, please provide your Hugging Face access token (https://huggingface.co/settings/tokens) as the argument for the `hf_token` parameter."
121
+ )
122
+ p = response.json().get("pipeline_tag")
123
+
124
+ headers["X-Wait-For-Model"] = "true"
125
+ client = huggingface_hub.InferenceClient(
126
+ model=model_name, headers=headers, token=hf_token, timeout=server_timeout,
127
+ )
128
+
129
+ # For tasks that are not yet supported by the InferenceClient
130
+ GRADIO_CACHE = os.environ.get("GRADIO_TEMP_DIR") or str( # noqa: N806
131
+ Path(tempfile.gettempdir()) / "gradio"
132
+ )
133
+
134
+ def custom_post_binary(data):
135
+ data = to_binary({"path": data})
136
+ response = httpx.request("POST", api_url, headers=headers, content=data)
137
+ return save_base64_to_cache(
138
+ external_utils.encode_to_base64(response), cache_dir=GRADIO_CACHE
139
+ )
140
+
141
+ preprocess = None
142
+ postprocess = None
143
+ examples = None
144
+
145
+ # example model: ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition
146
+ if p == "audio-classification":
147
+ inputs = components.Audio(type="filepath", label="Input")
148
+ outputs = components.Label(label="Class")
149
+ postprocess = external_utils.postprocess_label
150
+ examples = [
151
+ "https://gradio-builds.s3.amazonaws.com/demo-files/audio_sample.wav"
152
+ ]
153
+ fn = client.audio_classification
154
+ # example model: facebook/xm_transformer_sm_all-en
155
+ elif p == "audio-to-audio":
156
+ inputs = components.Audio(type="filepath", label="Input")
157
+ outputs = components.Audio(label="Output")
158
+ examples = [
159
+ "https://gradio-builds.s3.amazonaws.com/demo-files/audio_sample.wav"
160
+ ]
161
+ fn = custom_post_binary
162
+ # example model: facebook/wav2vec2-base-960h
163
+ elif p == "automatic-speech-recognition":
164
+ inputs = components.Audio(type="filepath", label="Input")
165
+ outputs = components.Textbox(label="Output")
166
+ examples = [
167
+ "https://gradio-builds.s3.amazonaws.com/demo-files/audio_sample.wav"
168
+ ]
169
+ fn = client.automatic_speech_recognition
170
+ # example model: microsoft/DialoGPT-medium
171
+ elif p == "conversational":
172
+ inputs = [
173
+ components.Textbox(render=False),
174
+ components.State(render=False),
175
+ ]
176
+ outputs = [
177
+ components.Chatbot(render=False),
178
+ components.State(render=False),
179
+ ]
180
+ examples = [["Hello World"]]
181
+ preprocess = external_utils.chatbot_preprocess
182
+ postprocess = external_utils.chatbot_postprocess
183
+ fn = client.conversational
184
+ # example model: julien-c/distilbert-feature-extraction
185
+ elif p == "feature-extraction":
186
+ inputs = components.Textbox(label="Input")
187
+ outputs = components.Dataframe(label="Output")
188
+ fn = client.feature_extraction
189
+ postprocess = utils.resolve_singleton
190
+ # example model: distilbert/distilbert-base-uncased
191
+ elif p == "fill-mask":
192
+ inputs = components.Textbox(label="Input")
193
+ outputs = components.Label(label="Classification")
194
+ examples = [
195
+ "Hugging Face is the AI community, working together, to [MASK] the future."
196
+ ]
197
+ postprocess = external_utils.postprocess_mask_tokens
198
+ fn = client.fill_mask
199
+ # Example: google/vit-base-patch16-224
200
+ elif p == "image-classification":
201
+ inputs = components.Image(type="filepath", label="Input Image")
202
+ outputs = components.Label(label="Classification")
203
+ postprocess = external_utils.postprocess_label
204
+ examples = ["https://gradio-builds.s3.amazonaws.com/demo-files/cheetah-002.jpg"]
205
+ fn = client.image_classification
206
+ # Example: deepset/xlm-roberta-base-squad2
207
+ elif p == "question-answering":
208
+ inputs = [
209
+ components.Textbox(label="Question"),
210
+ components.Textbox(lines=7, label="Context"),
211
+ ]
212
+ outputs = [
213
+ components.Textbox(label="Answer"),
214
+ components.Label(label="Score"),
215
+ ]
216
+ examples = [
217
+ [
218
+ "What entity was responsible for the Apollo program?",
219
+ "The Apollo program, also known as Project Apollo, was the third United States human spaceflight"
220
+ " program carried out by the National Aeronautics and Space Administration (NASA), which accomplished"
221
+ " landing the first humans on the Moon from 1969 to 1972.",
222
+ ]
223
+ ]
224
+ postprocess = external_utils.postprocess_question_answering
225
+ fn = client.question_answering
226
+ # Example: facebook/bart-large-cnn
227
+ elif p == "summarization":
228
+ inputs = components.Textbox(label="Input")
229
+ outputs = components.Textbox(label="Summary")
230
+ examples = [
231
+ [
232
+ "The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. During its construction, the Eiffel Tower surpassed the Washington Monument to become the tallest man-made structure in the world, a title it held for 41 years until the Chrysler Building in New York City was finished in 1930. It was the first structure to reach a height of 300 metres. Due to the addition of a broadcasting aerial at the top of the tower in 1957, it is now taller than the Chrysler Building by 5.2 metres (17 ft). Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct."
233
+ ]
234
+ ]
235
+ fn = client.summarization
236
+ # Example: distilbert-base-uncased-finetuned-sst-2-english
237
+ elif p == "text-classification":
238
+ inputs = components.Textbox(label="Input")
239
+ outputs = components.Label(label="Classification")
240
+ examples = ["I feel great"]
241
+ postprocess = external_utils.postprocess_label
242
+ fn = client.text_classification
243
+ # Example: gpt2
244
+ elif p == "text-generation":
245
+ inputs = components.Textbox(label="Text")
246
+ outputs = inputs
247
+ examples = ["Once upon a time"]
248
+ fn = external_utils.text_generation_wrapper(client)
249
+ # Example: valhalla/t5-small-qa-qg-hl
250
+ elif p == "text2text-generation":
251
+ inputs = components.Textbox(label="Input")
252
+ outputs = components.Textbox(label="Generated Text")
253
+ examples = ["Translate English to Arabic: How are you?"]
254
+ fn = client.text_generation
255
+ # Example: Helsinki-NLP/opus-mt-en-ar
256
+ elif p == "translation":
257
+ inputs = components.Textbox(label="Input")
258
+ outputs = components.Textbox(label="Translation")
259
+ examples = ["Hello, how are you?"]
260
+ fn = client.translation
261
+ # Example: facebook/bart-large-mnli
262
+ elif p == "zero-shot-classification":
263
+ inputs = [
264
+ components.Textbox(label="Input"),
265
+ components.Textbox(label="Possible class names (" "comma-separated)"),
266
+ components.Checkbox(label="Allow multiple true classes"),
267
+ ]
268
+ outputs = components.Label(label="Classification")
269
+ postprocess = external_utils.postprocess_label
270
+ examples = [["I feel great", "happy, sad", False]]
271
+ fn = external_utils.zero_shot_classification_wrapper(client)
272
+ # Example: sentence-transformers/distilbert-base-nli-stsb-mean-tokens
273
+ elif p == "sentence-similarity":
274
+ inputs = [
275
+ components.Textbox(
276
+ label="Source Sentence",
277
+ placeholder="Enter an original sentence",
278
+ ),
279
+ components.Textbox(
280
+ lines=7,
281
+ placeholder="Sentences to compare to -- separate each sentence by a newline",
282
+ label="Sentences to compare to",
283
+ ),
284
+ ]
285
+ outputs = components.JSON(label="Similarity scores")
286
+ examples = [["That is a happy person", "That person is very happy"]]
287
+ fn = external_utils.sentence_similarity_wrapper(client)
288
+ # Example: julien-c/ljspeech_tts_train_tacotron2_raw_phn_tacotron_g2p_en_no_space_train
289
+ elif p == "text-to-speech":
290
+ inputs = components.Textbox(label="Input")
291
+ outputs = components.Audio(label="Audio")
292
+ examples = ["Hello, how are you?"]
293
+ fn = client.text_to_speech
294
+ # example model: osanseviero/BigGAN-deep-128
295
+ elif p == "text-to-image":
296
+ inputs = components.Textbox(label="Input")
297
+ outputs = components.Image(label="Output")
298
+ examples = ["A beautiful sunset"]
299
+ fn = client.text_to_image
300
+ # example model: huggingface-course/bert-finetuned-ner
301
+ elif p == "token-classification":
302
+ inputs = components.Textbox(label="Input")
303
+ outputs = components.HighlightedText(label="Output")
304
+ examples = [
305
+ "Hugging Face is a company based in Paris and New York City that acquired Gradio in 2021."
306
+ ]
307
+ fn = external_utils.token_classification_wrapper(client)
308
+ # example model: impira/layoutlm-document-qa
309
+ elif p == "document-question-answering":
310
+ inputs = [
311
+ components.Image(type="filepath", label="Input Document"),
312
+ components.Textbox(label="Question"),
313
+ ]
314
+ postprocess = external_utils.postprocess_label
315
+ outputs = components.Label(label="Label")
316
+ fn = client.document_question_answering
317
+ # example model: dandelin/vilt-b32-finetuned-vqa
318
+ elif p == "visual-question-answering":
319
+ inputs = [
320
+ components.Image(type="filepath", label="Input Image"),
321
+ components.Textbox(label="Question"),
322
+ ]
323
+ outputs = components.Label(label="Label")
324
+ postprocess = external_utils.postprocess_visual_question_answering
325
+ examples = [
326
+ [
327
+ "https://gradio-builds.s3.amazonaws.com/demo-files/cheetah-002.jpg",
328
+ "What animal is in the image?",
329
+ ]
330
+ ]
331
+ fn = client.visual_question_answering
332
+ # example model: Salesforce/blip-image-captioning-base
333
+ elif p == "image-to-text":
334
+ inputs = components.Image(type="filepath", label="Input Image")
335
+ outputs = components.Textbox(label="Generated Text")
336
+ examples = ["https://gradio-builds.s3.amazonaws.com/demo-files/cheetah-002.jpg"]
337
+ fn = client.image_to_text
338
+ # example model: rajistics/autotrain-Adult-934630783
339
+ elif p in ["tabular-classification", "tabular-regression"]:
340
+ examples = external_utils.get_tabular_examples(model_name)
341
+ col_names, examples = external_utils.cols_to_rows(examples) # type: ignore
342
+ examples = [[examples]] if examples else None
343
+ inputs = components.Dataframe(
344
+ label="Input Rows",
345
+ type="pandas",
346
+ headers=col_names,
347
+ col_count=(len(col_names), "fixed"),
348
+ render=False,
349
+ )
350
+ outputs = components.Dataframe(
351
+ label="Predictions", type="array", headers=["prediction"]
352
+ )
353
+ fn = external_utils.tabular_wrapper
354
+ # example model: microsoft/table-transformer-detection
355
+ elif p == "object-detection":
356
+ inputs = components.Image(type="filepath", label="Input Image")
357
+ outputs = components.AnnotatedImage(label="Annotations")
358
+ fn = external_utils.object_detection_wrapper(client)
359
+ # example model: stabilityai/stable-diffusion-xl-refiner-1.0
360
+ elif p == "image-to-image":
361
+ inputs = [
362
+ components.Image(type="filepath", label="Input Image"),
363
+ components.Textbox(label="Input"),
364
+ ]
365
+ outputs = components.Image(label="Output")
366
+ examples = [
367
+ [
368
+ "https://gradio-builds.s3.amazonaws.com/demo-files/cheetah-002.jpg",
369
+ "Photo of a cheetah with green eyes",
370
+ ]
371
+ ]
372
+ fn = client.image_to_image
373
+ else:
374
+ raise ValueError(f"Unsupported pipeline type: {p}")
375
+
376
+ def query_huggingface_inference_endpoints(*data, **kwargs):
377
+ if preprocess is not None:
378
+ data = preprocess(*data)
379
+ try:
380
+ data = fn(*data, **kwargs) # type: ignore
381
+ except huggingface_hub.utils.HfHubHTTPError as e:
382
+ if "429" in str(e):
383
+ raise TooManyRequestsError() from e
384
+ if postprocess is not None:
385
+ data = postprocess(data) # type: ignore
386
+ return data
387
+
388
+ query_huggingface_inference_endpoints.__name__ = alias or model_name
389
+
390
+ interface_info = {
391
+ "fn": query_huggingface_inference_endpoints,
392
+ "inputs": inputs,
393
+ "outputs": outputs,
394
+ "title": model_name,
395
+ #"examples": examples,
396
+ }
397
+
398
+ kwargs = dict(interface_info, **kwargs)
399
+ interface = gradio.Interface(**kwargs)
400
+ return interface
401
+
402
+
403
+ def from_spaces(
404
+ space_name: str, hf_token: str | None, alias: str | None, **kwargs
405
+ ) -> Blocks:
406
+ space_url = f"https://huggingface.co/spaces/{space_name}"
407
+
408
+ print(f"Fetching Space from: {space_url}")
409
+
410
+ headers = {}
411
+ if hf_token not in [False, None]:
412
+ headers["Authorization"] = f"Bearer {hf_token}"
413
+
414
+ iframe_url = (
415
+ httpx.get(
416
+ f"https://huggingface.co/api/spaces/{space_name}/host", headers=headers
417
+ )
418
+ .json()
419
+ .get("host")
420
+ )
421
+
422
+ if iframe_url is None:
423
+ raise ValueError(
424
+ f"Could not find Space: {space_name}. If it is a private or gated Space, please provide your Hugging Face access token (https://huggingface.co/settings/tokens) as the argument for the `hf_token` parameter."
425
+ )
426
+
427
+ r = httpx.get(iframe_url, headers=headers)
428
+
429
+ result = re.search(
430
+ r"window.gradio_config = (.*?);[\s]*</script>", r.text
431
+ ) # some basic regex to extract the config
432
+ try:
433
+ config = json.loads(result.group(1)) # type: ignore
434
+ except AttributeError as ae:
435
+ raise ValueError(f"Could not load the Space: {space_name}") from ae
436
+ if "allow_flagging" in config: # Create an Interface for Gradio 2.x Spaces
437
+ return from_spaces_interface(
438
+ space_name, config, alias, hf_token, iframe_url, **kwargs
439
+ )
440
+ else: # Create a Blocks for Gradio 3.x Spaces
441
+ if kwargs:
442
+ warnings.warn(
443
+ "You cannot override parameters for this Space by passing in kwargs. "
444
+ "Instead, please load the Space as a function and use it to create a "
445
+ "Blocks or Interface locally. You may find this Guide helpful: "
446
+ "https://gradio.app/using_blocks_like_functions/"
447
+ )
448
+ return from_spaces_blocks(space=space_name, hf_token=hf_token)
449
+
450
+
451
+ def from_spaces_blocks(space: str, hf_token: str | None) -> Blocks:
452
+ client = Client(
453
+ space,
454
+ hf_token=hf_token,
455
+ download_files=False,
456
+ _skip_components=False,
457
+ )
458
+ # We set deserialize to False to avoid downloading output files from the server.
459
+ # Instead, we serve them as URLs using the /proxy/ endpoint directly from the server.
460
+
461
+ if client.app_version < version.Version("4.0.0b14"):
462
+ raise GradioVersionIncompatibleError(
463
+ f"Gradio version 4.x cannot load spaces with versions less than 4.x ({client.app_version})."
464
+ "Please downgrade to version 3 to load this space."
465
+ )
466
+
467
+ # Use end_to_end_fn here to properly upload/download all files
468
+ predict_fns = []
469
+ for fn_index, endpoint in client.endpoints.items():
470
+ if not isinstance(endpoint, Endpoint):
471
+ raise TypeError(
472
+ f"Expected endpoint to be an Endpoint, but got {type(endpoint)}"
473
+ )
474
+ helper = client.new_helper(fn_index)
475
+ if endpoint.backend_fn:
476
+ predict_fns.append(endpoint.make_end_to_end_fn(helper))
477
+ else:
478
+ predict_fns.append(None)
479
+ return gradio.Blocks.from_config(client.config, predict_fns, client.src) # type: ignore
480
+
481
+
482
+ def from_spaces_interface(
483
+ model_name: str,
484
+ config: dict,
485
+ alias: str | None,
486
+ hf_token: str | None,
487
+ iframe_url: str,
488
+ **kwargs,
489
+ ) -> Interface:
490
+ config = external_utils.streamline_spaces_interface(config)
491
+ api_url = f"{iframe_url}/api/predict/"
492
+ headers = {"Content-Type": "application/json"}
493
+ if hf_token not in [False, None]:
494
+ headers["Authorization"] = f"Bearer {hf_token}"
495
+
496
+ # The function should call the API with preprocessed data
497
+ def fn(*data):
498
+ data = json.dumps({"data": data})
499
+ response = httpx.post(api_url, headers=headers, data=data) # type: ignore
500
+ result = json.loads(response.content.decode("utf-8"))
501
+ if "error" in result and "429" in result["error"]:
502
+ raise TooManyRequestsError("Too many requests to the Hugging Face API")
503
+ try:
504
+ output = result["data"]
505
+ except KeyError as ke:
506
+ raise KeyError(
507
+ f"Could not find 'data' key in response from external Space. Response received: {result}"
508
+ ) from ke
509
+ if (
510
+ len(config["outputs"]) == 1
511
+ ): # if the fn is supposed to return a single value, pop it
512
+ output = output[0]
513
+ if (
514
+ len(config["outputs"]) == 1 and isinstance(output, list)
515
+ ): # Needed to support Output.Image() returning bounding boxes as well (TODO: handle different versions of gradio since they have slightly different APIs)
516
+ output = output[0]
517
+ return output
518
+
519
+ fn.__name__ = alias if (alias is not None) else model_name
520
+ config["fn"] = fn
521
+
522
+ kwargs = dict(config, **kwargs)
523
+ kwargs["_api_mode"] = True
524
+ interface = gradio.Interface(**kwargs)
525
+ return interface
526
+
527
+
528
+ def gr_Interface_load(
529
+ name: str,
530
+ src: str | None = None,
531
+ hf_token: str | None = None,
532
+ alias: str | None = None,
533
+ **kwargs, # ignore
534
+ ) -> Blocks:
535
+ try:
536
+ return load_blocks_from_repo(name, src, hf_token, alias)
537
+ except Exception as e:
538
+ print(e)
539
+ return gradio.Interface(lambda: None, ['text'], ['image'])
540
+
541
+
542
+ def list_uniq(l):
543
+ return sorted(set(l), key=l.index)
544
+
545
+
546
+ def get_status(model_name: str):
547
+ from huggingface_hub import AsyncInferenceClient
548
+ client = AsyncInferenceClient(token=HF_TOKEN, timeout=10)
549
+ return client.get_model_status(model_name)
550
+
551
+
552
+ def is_loadable(model_name: str, force_gpu: bool = False):
553
+ try:
554
+ status = get_status(model_name)
555
+ except Exception as e:
556
+ print(e)
557
+ print(f"Couldn't load {model_name}.")
558
+ return False
559
+ gpu_state = isinstance(status.compute_type, dict) and "gpu" in status.compute_type.keys()
560
+ if status is None or status.state not in ["Loadable", "Loaded"] or (force_gpu and not gpu_state):
561
+ print(f"Couldn't load {model_name}. Model state:'{status.state}', GPU:{gpu_state}")
562
+ return status is not None and status.state in ["Loadable", "Loaded"] and (not force_gpu or gpu_state)
563
+
564
+
565
+ def find_model_list(author: str="", tags: list[str]=[], not_tag="", sort: str="last_modified", limit: int=30, force_gpu=False, check_status=False):
566
+ from huggingface_hub import HfApi
567
+ api = HfApi(token=HF_TOKEN)
568
+ default_tags = ["diffusers"]
569
+ if not sort: sort = "last_modified"
570
+ limit = limit * 20 if check_status and force_gpu else limit * 5
571
+ models = []
572
+ try:
573
+ model_infos = api.list_models(author=author, #task="text-to-image",
574
+ tags=list_uniq(default_tags + tags), cardData=True, sort=sort, limit=limit)
575
+ except Exception as e:
576
+ print(f"Error: Failed to list models.")
577
+ print(e)
578
+ return models
579
+ for model in model_infos:
580
+ if not model.private and not model.gated or HF_TOKEN is not None:
581
+ loadable = is_loadable(model.id, force_gpu) if check_status else True
582
+ if not_tag and not_tag in model.tags or not loadable: continue
583
+ models.append(model.id)
584
+ if len(models) == limit: break
585
+ return models