Joeythemonster BilalSardar commited on
Commit
1353cf9
0 Parent(s):

Duplicate from BilalSardar/Text-To-image-AllModels

Browse files

Co-authored-by: Bilal Sardar <[email protected]>

Files changed (4) hide show
  1. .gitattributes +34 -0
  2. README.md +14 -0
  3. app.py +44 -0
  4. requirements.txt +3 -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,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Text To Image AllModels
3
+ emoji: 🐠
4
+ colorFrom: blue
5
+ colorTo: indigo
6
+ sdk: gradio
7
+ sdk_version: 3.15.0
8
+ app_file: app.py
9
+ pinned: false
10
+ license: openrail
11
+ duplicated_from: BilalSardar/Text-To-image-AllModels
12
+ ---
13
+
14
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from diffusers import StableDiffusionPipeline
2
+ import torch
3
+
4
+ modelieo=['nitrosocke/Arcane-Diffusion',
5
+ 'dreamlike-art/dreamlike-diffusion-1.0',
6
+ 'nitrosocke/archer-diffusion',
7
+ 'Linaqruf/anything-v3.0',
8
+ 'nitrosocke/mo-di-diffusion',
9
+ 'nitrosocke/classic-anim-diffusion',
10
+ 'dallinmackay/Van-Gogh-diffusion',
11
+ 'wavymulder/wavyfusion',
12
+ 'wavymulder/Analog-Diffusion',
13
+ 'nitrosocke/redshift-diffusion',
14
+ 'prompthero/midjourney-v4-diffusion',
15
+ 'hakurei/waifu-diffusion',
16
+ 'DGSpitzer/Cyberpunk-Anime-Diffusion',
17
+ 'nitrosocke/elden-ring-diffusion',
18
+ 'naclbit/trinart_stable_diffusion_v2',
19
+ 'nitrosocke/spider-verse-diffusion',
20
+ 'Fictiverse/Stable_Diffusion_BalloonArt_Model',
21
+ 'dallinmackay/Tron-Legacy-diffusion',
22
+ 'lambdalabs/sd-pokemon-diffusers',
23
+ 'AstraliteHeart/pony-diffusion',
24
+ 'nousr/robo-diffusion']
25
+
26
+
27
+ def TextToImage(Prompt,model):
28
+ model_id = model
29
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
30
+ pipe = pipe.to("cpu")
31
+
32
+ prompt = Prompt
33
+ image = pipe(prompt).images[0]
34
+
35
+ return image
36
+
37
+
38
+ import gradio as gr
39
+ interface = gr.Interface(fn=TextToImage,
40
+ inputs=["text", gr.Dropdown(modelieo)],
41
+ outputs="image",
42
+ title='Text to Image')
43
+
44
+ interface.launch()
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ transformers
2
+ diffusers
3
+ torch