PixelistStudio Brian Watson commited on
Commit
be56a1e
0 Parent(s):

Duplicate from blueorigin6/3dart-Models

Browse files

Co-authored-by: Brian Watson <blueorigin6@users.noreply.huggingface.co>

Files changed (4) hide show
  1. .gitattributes +34 -0
  2. README.md +12 -0
  3. app.py +97 -0
  4. index.html +305 -0
.gitattributes ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tflite filter=lfs diff=lfs merge=lfs -text
29
+ *.tgz filter=lfs diff=lfs merge=lfs -text
30
+ *.wasm filter=lfs diff=lfs merge=lfs -text
31
+ *.xz filter=lfs diff=lfs merge=lfs -text
32
+ *.zip filter=lfs diff=lfs merge=lfs -text
33
+ *.zst filter=lfs diff=lfs merge=lfs -text
34
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Maximum Multiplier
3
+ emoji: 🛕🛕
4
+ colorFrom: green
5
+ colorTo: blue
6
+ sdk: gradio
7
+ sdk_version: 3.15.0
8
+ app_file: app.py
9
+ duplicated_from: blueorigin6/3dart-Models
10
+ ---
11
+
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import os
3
+ import sys
4
+ from pathlib import Path
5
+
6
+ models = [
7
+ {"name": "DucHaiten Art", "url": "DucHaiten/DucHaitenAIart"},
8
+ {"name": "DucHaiten ClassicAnime", "url": "DucHaiten/DH_ClassicAnime"},
9
+ {"name": "DucHaiten DreamWorld", "url": "DucHaiten/DucHaitenDreamWorld"},
10
+ {"name": "DucHaiten Journey", "url": "DucHaiten/DucHaitenJourney"},
11
+ {"name": "DucHaiten StyleLikeMe", "url": "DucHaiten/DucHaiten-StyleLikeMe"},
12
+ {"name": "DucHaiten SuperCute", "url": "DucHaiten/DucHaitenSuperCute"},
13
+ {"name": "Redshift Diffusion 768", "url": "nitrosocke/redshift-diffusion-768"},
14
+ {"name": "Redshift Diffusion", "url": "nitrosocke/redshift-diffusion"},
15
+ ]
16
+
17
+ current_model = models[0]
18
+
19
+ text_gen = gr.Interface.load("spaces/daspartho/prompt-extend")
20
+
21
+ models2 = []
22
+ for model in models:
23
+ model_url = f"models/{model['url']}"
24
+ loaded_model = gr.Interface.load(model_url, live=True, preprocess=True)
25
+ models2.append(loaded_model)
26
+
27
+
28
+ def text_it(inputs, text_gen=text_gen):
29
+ return text_gen(inputs)
30
+
31
+
32
+ def set_model(current_model_index):
33
+ global current_model
34
+ current_model = models[current_model_index]
35
+ return gr.update(value=f"{current_model['name']}")
36
+
37
+
38
+ def send_it(inputs, model_choice):
39
+ proc = models2[model_choice]
40
+ return proc(inputs)
41
+
42
+
43
+ with gr.Blocks() as myface:
44
+ gr.HTML(
45
+
46
+ )
47
+
48
+ with gr.Row():
49
+ with gr.Row():
50
+ input_text = gr.Textbox(label="Prompt idea", placeholder="", lines=1)
51
+ # Model selection dropdown
52
+ model_name1 = gr.Dropdown(
53
+ label="Choose Model",
54
+ choices=[m["name"] for m in models],
55
+ type="index",
56
+ value=current_model["name"],
57
+ interactive=True,
58
+ )
59
+ with gr.Row():
60
+ see_prompts = gr.Button("Generate Prompts")
61
+ run = gr.Button("Generate Images", variant="primary")
62
+
63
+ with gr.Row():
64
+ output1 = gr.Image(label="")
65
+ output2 = gr.Image(label="")
66
+ output3 = gr.Image(label="")
67
+ with gr.Row():
68
+ magic1 = gr.Textbox(label="Generated Prompt", lines=2)
69
+ magic2 = gr.Textbox(label="Generated Prompt", lines=2)
70
+ magic3 = gr.Textbox(label="Generated Prompt", lines=2)
71
+ with gr.Row():
72
+ output4 = gr.Image(label="")
73
+ output5 = gr.Image(label="")
74
+ output6 = gr.Image(label="")
75
+ with gr.Row():
76
+ magic4 = gr.Textbox(label="Generated Prompt", lines=2)
77
+ magic5 = gr.Textbox(label="Generated Prompt", lines=2)
78
+ magic6 = gr.Textbox(label="Generated Prompt", lines=2)
79
+
80
+ model_name1.change(set_model, inputs=model_name1, outputs=[output1, output2, output3, output4, output5, output6])
81
+
82
+ run.click(send_it, inputs=[magic1, model_name1], outputs=[output1])
83
+ run.click(send_it, inputs=[magic2, model_name1], outputs=[output2])
84
+ run.click(send_it, inputs=[magic3, model_name1], outputs=[output3])
85
+ run.click(send_it, inputs=[magic4, model_name1], outputs=[output4])
86
+ run.click(send_it, inputs=[magic5, model_name1], outputs=[output5])
87
+ run.click(send_it, inputs=[magic6, model_name1], outputs=[output6])
88
+
89
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic1])
90
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic2])
91
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic3])
92
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic4])
93
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic5])
94
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic6])
95
+
96
+ myface.queue(concurrency_count=200)
97
+ myface.launch(inline=True, show_api=False, max_threads=400)
index.html ADDED
@@ -0,0 +1,305 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import os
3
+ import sys
4
+ from pathlib import Path
5
+
6
+ models = [
7
+ {"name": "Deliberate", "url": "Masagin/Deliberate"},
8
+ {"name": "Dreamlike Anime", "url": "dreamlike-art/dreamlike-anime-1.0"},
9
+ {"name": "Dreamlike Diffusion", "url": "dreamlike-art/dreamlike-diffusion-1.0"},
10
+ {"name": "Dreamlike Photoreal", "url": "dreamlike-art/dreamlike-photoreal-2.0"},
11
+ {"name": "Dreamshaper", "url": "Lykon/DreamShaper"},
12
+ {"name": "Lyriel 1.3", "url": "sakistriker/Lyriel_V1.3"},
13
+ {"name": "Never Ending Dream 2", "url": "luongphamit/NeverEnding-Dream2"},
14
+ {"name": "Protogen X 5.8", "url": "darkstorm2150/Protogen_x5.8_Official_Release"},
15
+ {"name": "❤ ART MODELS ==========", "url": "dreamlike-art/dreamlike-diffusion-1.0"},
16
+ {"name": "Alice in Diffusion Land", "url": "Guizmus/SDArt_AliceInDiffusionLand"},
17
+ {"name": "Alt Clip", "url": "BAAI/AltCLIP"},
18
+ {"name": "Anything Midjourney 4.1", "url": "Joeythemonster/anything-midjourney-v-4-1"},
19
+ {"name": "Chaos and Order", "url": "Guizmus/SDArt_ChaosAndOrder768"},
20
+ {"name": "Chilloutclara", "url": "Fred99774/chilloutvlara"},
21
+ {"name": "Comic Diffusion", "url": "ogkalu/Comic-Diffusion"},
22
+ {"name": "Cosmic Horros 768", "url": "Guizmus/SDArt_cosmichorrors768"},
23
+ {"name": "Cosmic Horros", "url": "Guizmus/SDArt_cosmichorrors"},
24
+ {"name": "DGSpitzer", "url": "DGSpitzer/DGSpitzer-Art-Diffusion"},
25
+ {"name": "Dungeons and Diffusion", "url": "0xJustin/Dungeons-and-Diffusion"},
26
+ {"name": "Elden Ring", "url": "nitrosocke/elden-ring-diffusion"},
27
+ {"name": "Epic Diffusion 1.1", "url": "johnslegers/epic-diffusion-v1.1"},
28
+ {"name": "Epic Diffusion", "url": "johnslegers/epic-diffusion"},
29
+ {"name": "EpicMix Realism", "url": "Duskfallcrew/EpicMix_Realism"},
30
+ {"name": "Fantasy Mix", "url": "theintuitiveye/FantasyMix"},
31
+ {"name": "Girl New 1", "url": "Fred99774/girlnew1"},
32
+ {"name": "Lit 6B", "url": "hakurei/lit-6B"},
33
+ {"name": "Luna Diffusion", "url": "proximasanfinetuning/luna-diffusion"},
34
+ {"name": "Midjourney 4.0", "url": "flax/midjourney-v4-diffusion"},
35
+ {"name": "Midjourney 4.1", "url": "Joeythemonster/anything-midjourney-v-4-1"},
36
+ {"name": "Mo-Di Diffusion", "url": "nitrosocke/mo-di-diffusion"},
37
+ {"name": "Nitro Diffusion", "url": "nitrosocke/Nitro-Diffusion"},
38
+ {"name": "Openjourney V2", "url": "prompthero/openjourney-v2"},
39
+ {"name": "Openjourney", "url": "prompthero/openjourney"},
40
+ {"name": "Seek Art Mega", "url": "coreco/seek.art_MEGA"},
41
+ {"name": "Something", "url": "Guizmus/SDArt_something"},
42
+ {"name": "Spider Verse diffusion", "url": "nitrosocke/spider-verse-diffusion"},
43
+ {"name": "Vintedois 1.0", "url": "22h/vintedois-diffusion-v0-1"},
44
+ {"name": "Vintedois 2.0", "url": "22h/vintedois-diffusion-v0-2"},
45
+ {"name": "❤ ART STYLES ==========", "url": "joachimsallstrom/Double-Exposure-Diffusion"},
46
+ {"name": "Balloon Art", "url": "Fictiverse/Stable_Diffusion_BalloonArt_Model"},
47
+ {"name": "Double Exposure Diffusion", "url": "joachimsallstrom/Double-Exposure-Diffusion"},
48
+ {"name": "Fluid Art", "url": "Fictiverse/Stable_Diffusion_FluidArt_Model"},
49
+ {"name": "GTA5 Artwork Diffusion", "url": "ItsJayQz/GTA5_Artwork_Diffusion"},
50
+ {"name": "Marvel WhatIf Diffusion", "url": "ItsJayQz/Marvel_WhatIf_Diffusion"},
51
+ {"name": "Naruto Diffuser", "url": "lambdalabs/sd-naruto-diffusers"},
52
+ {"name": "Papercut", "url": "Fictiverse/Stable_Diffusion_PaperCut_Model"},
53
+ {"name": "Pokemon Diffuser", "url": "lambdalabs/sd-pokemon-diffusers"},
54
+ {"name": "Synthwave Punk 2", "url": "ItsJayQz/SynthwavePunk-v2"},
55
+ {"name": "Valorant Diffusion", "url": "ItsJayQz/Valorant_Diffusion"},
56
+ {"name": "Van Gogh Diffusion", "url": "dallinmackay/Van-Gogh-diffusion"},
57
+ {"name": "Vectorartz Diffusion", "url": "coder119/Vectorartz_Diffusion"},
58
+ {"name": "VoxelArt", "url": "Fictiverse/Stable_Diffusion_VoxelArt_Model"},
59
+ {"name": "❤ ANIME MODELS ==========", "url": "dreamlike-art/dreamlike-anime-1.0"},
60
+ {"name": "7 Pa", "url": "AIARTCHAN/7pa"},
61
+ {"name": "A Certain Model", "url": "JosephusCheung/ACertainModel"},
62
+ {"name": "A Certain Thing", "url": "JosephusCheung/ACertainThing"},
63
+ {"name": "A Certainity", "url": "JosephusCheung/ACertainty"},
64
+ {"name": "Abyss Hell Hero", "url": "AIARTCHAN/AbyssHellHero"},
65
+ {"name": "Abyss Maple 3", "url": "AIARTCHAN/AbyssMapleVer3"},
66
+ {"name": "Abyss Orange Mix 2", "url": "WarriorMama777/AbyssOrangeMix2"},
67
+ {"name": "Abyss Orange Mix 4", "url": "sakistriker/AbyssOrangeMix3"},
68
+ {"name": "Abyss Orange Mix", "url": "WarriorMama777/AbyssOrangeMix"},
69
+ {"name": "AbyssHell 3", "url": "AIARTCHAN/AbyssHellVer3"},
70
+ {"name": "All 526 Animated", "url": "stablediffusionapi/all-526-animated"},
71
+ {"name": "Anidosmix 3", "url": "AIARTCHAN/anidosmixV2"},
72
+ {"name": "Anime Kawai Diffusion", "url": "Ojimi/anime-kawai-diffusion"},
73
+ {"name": "Anireal 3D V2", "url": "circulus/sd-anireal-3d-v2"},
74
+ {"name": "AnyLORA", "url": "kubanemil/AnyLORA"},
75
+ {"name": "Anything 2.1", "url": "swl-models/anything-v2.1"},
76
+ {"name": "Anything 3.0 Light", "url": "mm00/anything-v3.0-light"},
77
+ {"name": "Anything 3.0", "url": "Linaqruf/anything-v3.0"},
78
+ {"name": "Anything 3.1", "url": "cag/anything-v3-1"},
79
+ {"name": "Anything 3X", "url": "iZELX1/Anything-V3-X"},
80
+ {"name": "Anything 4.0", "url": "andite/anything-v4.0"},
81
+ {"name": "Anything 5", "url": "sakistriker/Anything_V5_PrtRE"},
82
+ {"name": "Anything 5.0", "url": "stablediffusionapi/anything-v5"},
83
+ {"name": "Anything Else 4", "url": "stablediffusionapi/anythingelse-v4"},
84
+ {"name": "Anything Else 5", "url": "stablediffusionapi/anything-v5"},
85
+ {"name": "Arcane Diffusion", "url": "nitrosocke/Arcane-Diffusion"},
86
+ {"name": "Archer Diffusion", "url": "nitrosocke/archer-diffusion"},
87
+ {"name": "Asian Mix", "url": "D1b4l4p/AsianMix"},
88
+ {"name": "Blood Orange Mix", "url": "WarriorMama777/BloodOrangeMix"},
89
+ {"name": "CamelliaMix 2.5D","url": "stablediffusionapi/camelliamix25d"},
90
+ {"name": "CamelliaMix Line","url": "stablediffusionapi/camelliamixline"},
91
+ {"name": "CamelliaMix","url": "Powidl43/CamelliaMix"},
92
+ {"name": "Cetusmix", "url": "stablediffusionapi/cetusmix"},
93
+ {"name": "Chik Mix", "url": "stablediffusionapi/chikmix"},
94
+ {"name": "Chikmix", "url": "stablediffusionapi/chikmix"},
95
+ {"name": "Chillout App Factory","url": "stablediffusionapi/chillout-app-factory"},
96
+ {"name": "Classic Anime", "url": "nitrosocke/classic-anim-diffusion"},
97
+ {"name": "Cool Japan Diffusion 2.1.2", "url": "aipicasso/cool-japan-diffusion-2-1-2"},
98
+ {"name": "Cosmic Babes", "url": "stablediffusionapi/cosmic-babes"},
99
+ {"name": "Counterfeit 1.0", "url": "gsdf/counterfeit-v1.0"},
100
+ {"name": "Counterfeit 2", "url": "gsdf/Counterfeit-V2.0"},
101
+ {"name": "Counterfeit 2.0", "url": "gsdf/Counterfeit-V2.0"},
102
+ {"name": "Counterfeit 3.0", "url": "stablediffusionapi/counterfeit-v30"},
103
+ {"name": "CuteSexyRobutts", "url": "andite/cutesexyrobutts-diffusion"},
104
+ {"name": "CyberPunk Anime", "url": "DGSpitzer/Cyberpunk-Anime-Diffusion"},
105
+ {"name": "Dark Sushi Mix", "url": "stablediffusionapi/dark-sushi-mix"},
106
+ {"name": "Dash Sushi 25d", "url": "stablediffusionapi/dark-sushi-25d"},
107
+ {"name": "DucHaiten Anime", "url": "DucHaiten/DucHaitenAnime"},
108
+ {"name": "Eerie Orange Mix", "url": "WarriorMama777/EerieOrangeMix"},
109
+ {"name": "Eimis Anime Diffusion", "url": "eimiss/EimisAnimeDiffusion_1.0v"},
110
+ {"name": "Ghibli Diffusion", "url": "nitrosocke/Ghibli-Diffusion"},
111
+ {"name": "GrapeFruit", "url": "iZELX1/Grapefruit"},
112
+ {"name": "GuoFeng 3", "url": "xiaolxl/GuoFeng3"},
113
+ {"name": "Guweiz Diffusion", "url": "andite/guweiz-diffusion"},
114
+ {"name": "Hiten Diffusion", "url": "andite/hiten-diffusion"},
115
+ {"name": "Icomix 2", "url": "stablediffusionapi/icomix-2"},
116
+ {"name": "InkPunk Diffusion", "url": "Envvi/Inkpunk-Diffusion"},
117
+ {"name": "Mama Orange Mixs", "url": "WarriorMama777/OrangeMixs"},
118
+ {"name": "Mashuu Diffusion", "url": "andite/mashuu-diffusion"},
119
+ {"name": "Meainamis 8", "url": "sakistriker/MeinaMix_V8"},
120
+ {"name": "Meina Alter", "url": "stablediffusionapi/meinaalter"},
121
+ {"name": "Meina Pastel", "url": "stablediffusionapi/meinapastel"},
122
+ {"name": "MeinaMix 7", "url": "Nacholmo/meinamixv7-diffusers"},
123
+ {"name": "Mignon Diffusion", "url": "andite/mignon-diffusion"},
124
+ {"name": "MikaPikazo Diffusion", "url": "andite/mikapikazo-diffusion"},
125
+ {"name": "Mikapikazo", "url": "andite/mikapikazo-diffusion"},
126
+ {"name": "Mix Pro V4", "url": "AIARTCHAN/MIX-Pro-V4"},
127
+ {"name": "NeverEnding-Dream", "url": "Lykon/NeverEnding-Dream"},
128
+ {"name": "Niji V5 Style 1", "url": "sakistriker/NijiV5style_V1"},
129
+ {"name": "Openjourney 4", "url": "prompthero/openjourney-v4"},
130
+ {"name": "OpenNiji", "url": "Korakoe/OpenNiji"},
131
+ {"name": "Pastel Mix", "url": "andite/pastel-mix"},
132
+ {"name": "Picasso Diffusion 1.1", "url": "aipicasso/picasso-diffusion-1-1"},
133
+ {"name": "Piromizu Diffusion", "url": "andite/piromizu-diffusion"},
134
+ {"name": "Protogen 2.2", "url": "darkstorm2150/Protogen_v2.2_Official_Release"},
135
+ {"name": "Protogen Infinity", "url": "darkstorm2150/Protogen_Infinity_Official_Release"},
136
+ {"name": "Protogen X 3.4", "url": "darkstorm2150/Protogen_x3.4_Official_Release"},
137
+ {"name": "Rev Anim", "url": "stablediffusionapi/rev-anim"},
138
+ {"name": "Rev Animated", "url": "coreml/coreml-ReV-Animated"},
139
+ {"name": "Rev Animated", "url": "LottePeisch/RevAnimated-Diffusers"},
140
+ {"name": "Something V 2.2","url": "NoCrypt/SomethingV2_2"},
141
+ {"name": "Something V2","url": "NoCrypt/SomethingV2"},
142
+ {"name": "Three Delicacy", "url": "stablediffusionapi/three-delicacy"},
143
+ {"name": "Three Delicacy wonto", "url": "stablediffusionapi/three-delicacy-wonto"},
144
+ {"name": "TMND mix", "url": "stablediffusionapi/tmnd-mix"},
145
+ {"name": "Waifu Diffusion", "url": "hakurei/waifu-diffusion"},
146
+ {"name": "❤ REALISTIC PHOTO MODELS ==========", "url": "dreamlike-art/dreamlike-photoreal-2.0"},
147
+ {"name": "AmiIReal", "url": "stablediffusionapi/amireal"},
148
+ {"name": "Analog Diffusion", "url": "wavymulder/Analog-Diffusion"},
149
+ {"name": "Circulus 2.8", "url": "circulus/sd-photoreal-v2.8"},
150
+ {"name": "Circulus Photoreal V2", "url": "circulus/sd-photoreal-real-v2"},
151
+ {"name": "Claudfuen 1", "url": "claudfuen/photorealistic-fuen-v1"},
152
+ {"name": "Collage Diffusion", "url": "wavymulder/collage-diffusion"},
153
+ {"name": "Cyberrealistic", "url": "stablediffusionapi/cyberrealistic"},
154
+ {"name": "Dreamful 2", "url": "Hius/DreamFul-V2"},
155
+ {"name": "GakkiMix768", "url": "Sa1i/gakki-mix-768"},
156
+ {"name": "Grimoeresigils", "url": "ECarbenia/grimoiresigils"},
157
+ {"name": "HARDBlend", "url": "theintuitiveye/HARDblend"},
158
+ {"name": "HassanBlend 1.4", "url": "hassanblend/hassanblend1.4"},
159
+ {"name": "HassanBlend 1.5.1.2", "url": "hassanblend/HassanBlend1.5.1.2"},
160
+ {"name": "Lomo Diffusion", "url": "wavymulder/lomo-diffusion"},
161
+ {"name": "Model Shoot", "url": "wavymulder/modelshoot"},
162
+ {"name": "Portrait Plus", "url": "wavymulder/portraitplus"},
163
+ {"name": "QuinceMix", "url": "Hemlok/QuinceMix"},
164
+ {"name": "Realistic Vision 1.4", "url": "SG161222/Realistic_Vision_V1.4"},
165
+ {"name": "The Ally", "url": "stablediffusionapi/the-ally"},
166
+ {"name": "Timeless Diffusion", "url": "wavymulder/timeless-diffusion"},
167
+ {"name": "UltraSkin", "url": "VegaKH/Ultraskin"},
168
+ {"name": "Wavyfusion", "url": "wavymulder/wavyfusion"},
169
+ {"name": "❤ SEMI-REALISTIC MODELS ==========", "url": "stablediffusionapi/all-526"},
170
+ {"name": "All 526", "url": "stablediffusionapi/all-526"},
171
+ {"name": "All 526 animated", "url": "stablediffusionapi/all-526-animated"},
172
+ {"name": "Circulus Semi Real 2", "url": "circulus/sd-photoreal-semi-v2"},
173
+ {"name": "Semi Real Mix", "url": "robotjung/SemiRealMix"},
174
+ {"name": "SpyBG", "url": "stablediffusionapi/spybg"},
175
+ {"name": "❤ STABLE DIFFUSION MODELS ==========", "url": "stabilityai/stable-diffusion-2-1"},
176
+ {"name": "Stable Diffusion 1.4","url": "CompVis/stable-diffusion-v1-4"},
177
+ {"name": "Stable Diffusion 1.5","url": "runwayml/stable-diffusion-v1-5"},
178
+ {"name": "Stable Diffusion 2.1","url": "stabilityai/stable-diffusion-2-1"},
179
+ {"name": "Stable Diffusion 2.1 Base","url": "stabilityai/stable-diffusion-2-1-base"},
180
+ {"name": "Stable Diffusion 2.1 Unclip","url": "stabilityai/stable-diffusion-2-1-unclip"},
181
+ {"name": "❤ SCI FI MODELS ==========", "url": "nitrosocke/Future-Diffusion"},
182
+ {"name": "Future Diffusion", "url": "nitrosocke/Future-Diffusion"},
183
+ {"name": "JWST Deep Space Diffusion", "url": "dallinmackay/JWST-Deep-Space-diffusion"},
184
+ {"name": "Robo Diffusion 3 Base", "url": "nousr/robo-diffusion-2-base"},
185
+ {"name": "Robo Diffusion", "url": "nousr/robo-diffusion"},
186
+ {"name": "Tron Legacy Diffusion", "url": "dallinmackay/Tron-Legacy-diffusion"},
187
+ {"name": "❤ 3D ART MODELS ==========", "url": "DucHaiten/DucHaitenAIart"},
188
+ {"name": "DucHaiten Art", "url": "DucHaiten/DucHaitenAIart"},
189
+ {"name": "DucHaiten ClassicAnime", "url": "DucHaiten/DH_ClassicAnime"},
190
+ {"name": "DucHaiten DreamWorld", "url": "DucHaiten/DucHaitenDreamWorld"},
191
+ {"name": "DucHaiten Journey", "url": "DucHaiten/DucHaitenJourney"},
192
+ {"name": "DucHaiten StyleLikeMe", "url": "DucHaiten/DucHaiten-StyleLikeMe"},
193
+ {"name": "DucHaiten SuperCute", "url": "DucHaiten/DucHaitenSuperCute"},
194
+ {"name": "Redshift Diffusion 768", "url": "nitrosocke/redshift-diffusion-768"},
195
+ {"name": "Redshift Diffusion", "url": "nitrosocke/redshift-diffusion"},
196
+ ]
197
+
198
+ current_model = models[0]
199
+
200
+ text_gen = gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
201
+
202
+ models2 = []
203
+ for model in models:
204
+ model_url = f"models/{model['url']}"
205
+ loaded_model = gr.Interface.load(model_url, live=True, preprocess=True)
206
+ models2.append(loaded_model)
207
+
208
+
209
+ def text_it(inputs, text_gen=text_gen):
210
+ return text_gen(inputs)
211
+
212
+
213
+ def set_model(current_model_index):
214
+ global current_model
215
+ current_model = models[current_model_index]
216
+ return gr.update(label=f"{current_model['name']}")
217
+
218
+
219
+ def send_it(inputs, model_choice):
220
+ proc = models2[model_choice]
221
+ return proc(inputs)
222
+
223
+
224
+ css = """"""
225
+
226
+ with gr.Blocks(css=css) as myface:
227
+ gr.HTML(
228
+ """<!DOCTYPE html>
229
+ <html lang="en">
230
+ <head>
231
+ <meta charset="utf-8" />
232
+ <meta name="twitter:card" content="player"/>
233
+ <meta name="twitter:site" content=""/>
234
+ <meta name="twitter:player" content="https://omnibus-maximum-multiplier-places.hf.space"/>
235
+ <meta name="twitter:player:stream" content="https://omnibus-maximum-multiplier-places.hf.space"/>
236
+ <meta name="twitter:player:width" content="100%"/>
237
+ <meta name="twitter:player:height" content="600"/>
238
+ <meta property="og:title" content="Embedded Live Viewer"/>
239
+ <meta property="og:description" content="Tweet Genie - A Huggingface Space"/>
240
+ <meta property="og:image" content="https://cdn.glitch.global/80dbe92e-ce75-44af-84d5-74a2e21e9e55/omnicard.png?v=1676772531627"/>
241
+ <!--<meta http-equiv="refresh" content="0; url=https://huggingface.co/spaces/corbt/tweet-genie">-->
242
+ </head>
243
+ </html>
244
+ """
245
+ )
246
+
247
+ with gr.Row():
248
+ with gr.Row():
249
+ input_text = gr.Textbox(label="Prompt idea", lines=1)
250
+ # Model selection dropdown
251
+ model_name1 = gr.Dropdown(
252
+ label="Choose Model",
253
+ choices=[m["name"] for m in models],
254
+ type="index",
255
+ value=current_model["name"],
256
+ interactive=True,
257
+ )
258
+ with gr.Row():
259
+ see_prompts = gr.Button("Generate Prompts")
260
+ run = gr.Button("Generate Images", variant="primary")
261
+ with gr.Tab("Main"):
262
+ with gr.Row():
263
+ output1 = gr.Image(label=f"{current_model['name']}")
264
+ output2 = gr.Image(label=f"{current_model['name']}")
265
+ output3 = gr.Image(label=f"{current_model['name']}")
266
+ output4 = gr.Image(label=f"{current_model['name']}")
267
+ with gr.Row():
268
+ magic1 = gr.Textbox(lines=4)
269
+ magic2 = gr.Textbox(lines=4)
270
+ magic3 = gr.Textbox(lines=4)
271
+ magic4 = gr.Textbox(lines=4)
272
+
273
+ with gr.Row():
274
+ output5 = gr.Image(label=f"{current_model['name']}")
275
+ output6 = gr.Image(label=f"{current_model['name']}")
276
+ output7 = gr.Image(label=f"{current_model['name']}")
277
+ output8 = gr.Image(label=f"{current_model['name']}")
278
+ with gr.Row():
279
+ magic5 = gr.Textbox(lines=4)
280
+ magic6 = gr.Textbox(lines=4)
281
+ magic7 = gr.Textbox(lines=4)
282
+ magic8 = gr.Textbox(lines=4)
283
+
284
+ model_name1.change(set_model, inputs=model_name1, outputs=[output1, output2, output3, output4, output5, output6, output7, output8])
285
+
286
+ run.click(send_it, inputs=[magic1, model_name1], outputs=[output1])
287
+ run.click(send_it, inputs=[magic2, model_name1], outputs=[output2])
288
+ run.click(send_it, inputs=[magic3, model_name1], outputs=[output3])
289
+ run.click(send_it, inputs=[magic4, model_name1], outputs=[output4])
290
+ run.click(send_it, inputs=[magic5, model_name1], outputs=[output5])
291
+ run.click(send_it, inputs=[magic6, model_name1], outputs=[output6])
292
+ run.click(send_it, inputs=[magic7, model_name1], outputs=[output7])
293
+ run.click(send_it, inputs=[magic8, model_name1], outputs=[output8])
294
+
295
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic1])
296
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic2])
297
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic3])
298
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic4])
299
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic5])
300
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic6])
301
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic7])
302
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic8])
303
+
304
+ myface.queue(concurrency_count=200)
305
+ myface.launch(inline=True, show_api=False, max_threads=400)