John6666 commited on
Commit
2e857d1
β€’
1 Parent(s): c8122b2

Upload 4 files

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