deploy
Browse files
app.py
CHANGED
@@ -88,12 +88,20 @@ def generate(
|
|
88 |
|
89 |
|
90 |
examples = [
|
91 |
-
"
|
92 |
-
"
|
93 |
-
"an astronaut riding a
|
94 |
-
"
|
95 |
-
"
|
96 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
]
|
98 |
|
99 |
css = '''
|
@@ -106,16 +114,13 @@ with gr.Blocks(css=css) as demo:
|
|
106 |
gr.HTML(
|
107 |
"""
|
108 |
<h1 style='text-align: center'>
|
109 |
-
Stable Diffusion 3
|
110 |
</h1>
|
111 |
"""
|
112 |
)
|
113 |
gr.HTML(
|
114 |
"""
|
115 |
-
|
116 |
-
Follow me for more!
|
117 |
-
<a href='https://twitter.com/kadirnar_ai' target='_blank'>Twitter</a> | <a href='https://github.com/kadirnar' target='_blank'>Github</a> | <a href='https://www.linkedin.com/in/kadir-nar/' target='_blank'>Linkedin</a>
|
118 |
-
</h3>
|
119 |
"""
|
120 |
)
|
121 |
with gr.Group():
|
@@ -151,14 +156,14 @@ with gr.Blocks(css=css) as demo:
|
|
151 |
minimum=0,
|
152 |
maximum=60,
|
153 |
step=1,
|
154 |
-
value=
|
155 |
)
|
156 |
number_image = gr.Slider(
|
157 |
label="Number of Image",
|
158 |
minimum=1,
|
159 |
maximum=4,
|
160 |
step=1,
|
161 |
-
value=
|
162 |
)
|
163 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
164 |
with gr.Row(visible=True):
|
|
|
88 |
|
89 |
|
90 |
examples = [
|
91 |
+
"A red sofa on top of a white building.",
|
92 |
+
"A cardboard which is large and sits on a theater stage.",
|
93 |
+
"A painting of an astronaut riding a pig wearing a tutu holding a pink umbrella.",
|
94 |
+
"Studio photograph closeup of a chameleon over a black background.",
|
95 |
+
"Closeup portrait photo of beautiful goth woman, makeup.",
|
96 |
+
"A living room, bright modern Scandinavian style house, large windows.",
|
97 |
+
"Portrait photograph of an anthropomorphic tortoise seated on a New York City subway train.",
|
98 |
+
"Batman, cute modern Disney style, Pixar 3d portrait, ultra detailed, gorgeous, 3d zbrush, trending on dribbble, 8k render.",
|
99 |
+
"Cinnamon bun on the plate, watercolor painting, detailed, brush strokes, light palette, light, cozy.",
|
100 |
+
"A lion, colorful, low-poly, cyan and orange eyes, poly-hd, 3d, low-poly game art, polygon mesh, jagged, blocky, wireframe edges, centered composition.",
|
101 |
+
"Long exposure photo of Tokyo street, blurred motion, streaks of light, surreal, dreamy, ghosting effect, highly detailed.",
|
102 |
+
"A glamorous digital magazine photoshoot, a fashionable model wearing avant-garde clothing, set in a futuristic cyberpunk roof-top environment, with a neon-lit city background, intricate high fashion details, backlit by vibrant city glow, Vogue fashion photography.",
|
103 |
+
"Masterpiece, best quality, girl, collarbone, wavy hair, looking at viewer, blurry foreground, upper body, necklace, contemporary, plain pants, intricate, print, pattern, ponytail, freckles, red hair, dappled sunlight, smile, happy."
|
104 |
+
|
105 |
]
|
106 |
|
107 |
css = '''
|
|
|
114 |
gr.HTML(
|
115 |
"""
|
116 |
<h1 style='text-align: center'>
|
117 |
+
Stable Diffusion 3 Medium
|
118 |
</h1>
|
119 |
"""
|
120 |
)
|
121 |
gr.HTML(
|
122 |
"""
|
123 |
+
|
|
|
|
|
|
|
124 |
"""
|
125 |
)
|
126 |
with gr.Group():
|
|
|
156 |
minimum=0,
|
157 |
maximum=60,
|
158 |
step=1,
|
159 |
+
value=30,
|
160 |
)
|
161 |
number_image = gr.Slider(
|
162 |
label="Number of Image",
|
163 |
minimum=1,
|
164 |
maximum=4,
|
165 |
step=1,
|
166 |
+
value=4,
|
167 |
)
|
168 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
169 |
with gr.Row(visible=True):
|