animeartstudio Sam Watson commited on
Commit
58412b2
0 Parent(s):

Duplicate from pulpapps/QuickGen-Anime

Browse files

Co-authored-by: Sam Watson <pulpapps@users.noreply.huggingface.co>

Files changed (3) hide show
  1. .gitattributes +34 -0
  2. README.md +14 -0
  3. app.py +59 -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: Anime
3
+ emoji: 🐨
4
+ colorFrom: purple
5
+ colorTo: pink
6
+ sdk: gradio
7
+ sdk_version: 3.17.0
8
+ app_file: app.py
9
+ pinned: false
10
+ license: creativeml-openrail-m
11
+ duplicated_from: pulpapps/QuickGen-Anime
12
+ ---
13
+
14
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import os
3
+ import sys
4
+
5
+ model = ["dreamlike-art/dreamlike-anime-1.0"]
6
+
7
+ proc1 = gr.Interface.load(f"models/{model[0]}", live=True, postprocess=True, preprocess=True)
8
+ proc2 = gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
9
+ proc3 = gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
10
+ proc4 = gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
11
+ proc5 = gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
12
+ proc5 = gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
13
+ proc6 = gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
14
+ proc7 = gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
15
+
16
+
17
+ css = """"""
18
+ with gr.Blocks(css=css) as sim:
19
+ with gr.Row():
20
+ gr.HTML("""""")
21
+ with gr.Row():
22
+ inputtext = gr.Textbox(label="Prompt Idea", placeholder="Eg. Cute anime girl", lines=1)
23
+ genbut = gr.Button("Generate Prompts")
24
+ runbut = gr.Button("Generate Images", variant="primary")
25
+ with gr.Row():
26
+ output1 = gr.Image(label="")
27
+ output2 = gr.Image(label="")
28
+ output3 = gr.Image(label="")
29
+ with gr.Row():
30
+ gentext1 = gr.Textbox(label="Generated Prompt", lines=2)
31
+ gentext2 = gr.Textbox(label="Generated Prompt", lines=2)
32
+ gentext3 = gr.Textbox(label="Generated Prompt", lines=2)
33
+ with gr.Row():
34
+ output4 = gr.Image(label="")
35
+ output5 = gr.Image(label="")
36
+ output6 = gr.Image(label="")
37
+ with gr.Row():
38
+ gentext4 = gr.Textbox(label="Generated Prompt", lines=2)
39
+ gentext5 = gr.Textbox(label="Generated Prompt", lines=2)
40
+ gentext6 = gr.Textbox(label="Generated Prompt", lines=2)
41
+
42
+
43
+ genbut.click(proc2, inputs=inputtext, outputs=gentext1)
44
+ genbut.click(proc3, inputs=inputtext, outputs=gentext2)
45
+ genbut.click(proc4, inputs=inputtext, outputs=gentext3)
46
+ genbut.click(proc5, inputs=inputtext, outputs=gentext4)
47
+ genbut.click(proc6, inputs=inputtext, outputs=gentext5)
48
+ genbut.click(proc7, inputs=inputtext, outputs=gentext6)
49
+
50
+
51
+ runbut.click(proc1, inputs=gentext1, outputs=output1)
52
+ runbut.click(proc1, inputs=gentext2, outputs=output2)
53
+ runbut.click(proc1, inputs=gentext3, outputs=output3)
54
+ runbut.click(proc1, inputs=gentext4, outputs=output4)
55
+ runbut.click(proc1, inputs=gentext5, outputs=output5)
56
+ runbut.click(proc1, inputs=gentext6, outputs=output6)
57
+
58
+ sim.queue(concurrency_count=200)
59
+ sim.launch(inline=True, max_threads=400)