Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
9 |
context = autocast if device == "cuda" else nullcontext
|
10 |
dtype = torch.float16 if device == "cuda" else torch.float32
|
11 |
|
12 |
-
pipe = StableDiffusionPipeline.from_pretrained("
|
13 |
pipe = pipe.to(device)
|
14 |
|
15 |
|
@@ -136,15 +136,13 @@ with block:
|
|
136 |
"""
|
137 |
<div style="text-align: center; max-width: 650px; margin: 0 auto;">
|
138 |
<div>
|
139 |
-
|
140 |
-
style="margin: auto; max-width: 7rem;">
|
141 |
<h1 style="font-weight: 900; font-size: 3rem;">
|
142 |
-
|
143 |
</h1>
|
144 |
</div>
|
145 |
<p style="margin-bottom: 10px; font-size: 94%">
|
146 |
-
Generate
|
147 |
-
<a href="https://lambdalabs.com/blog/how-to-fine-tune-stable-diffusion-how-we-made-the-text-to-pokemon-model-at-lambda/">created by Lambda Labs</a>.
|
148 |
</p>
|
149 |
</div>
|
150 |
"""
|
@@ -189,14 +187,11 @@ with block:
|
|
189 |
gr.HTML(
|
190 |
"""
|
191 |
<div class="footer">
|
192 |
-
<p> Gradio Demo by 🤗
|
193 |
</p>
|
194 |
</div>
|
195 |
<div class="acknowledgments">
|
196 |
-
<p> Put in a text prompt and generate your own
|
197 |
-
<p>If you want to find out how we made this model read about it in <a href="https://lambdalabs.com/blog/how-to-fine-tune-stable-diffusion-how-we-made-the-text-to-pokemon-model-at-lambda/">this blog post</a>.
|
198 |
-
<p>And if you want to train your own Stable Diffusion variants, see our <a href="https://github.com/LambdaLabsML/examples/tree/main/stable-diffusion-finetuning">Examples Repo</a>!
|
199 |
-
<p>Trained by <a href="justinpinkney.com">Justin Pinkney</a> (<a href="https://twitter.com/Buntworthy">@Buntworthy</a>) at <a href="https://lambdalabs.com/">Lambda Labs</a>.</p>
|
200 |
</div>
|
201 |
"""
|
202 |
)
|
|
|
9 |
context = autocast if device == "cuda" else nullcontext
|
10 |
dtype = torch.float16 if device == "cuda" else torch.float32
|
11 |
|
12 |
+
pipe = StableDiffusionPipeline.from_pretrained("fffiloni/mr-men-and-little-misses", torch_dtype=dtype)
|
13 |
pipe = pipe.to(device)
|
14 |
|
15 |
|
|
|
136 |
"""
|
137 |
<div style="text-align: center; max-width: 650px; margin: 0 auto;">
|
138 |
<div>
|
139 |
+
|
|
|
140 |
<h1 style="font-weight: 900; font-size: 3rem;">
|
141 |
+
Mr Men and Little Misses text to image
|
142 |
</h1>
|
143 |
</div>
|
144 |
<p style="margin-bottom: 10px; font-size: 94%">
|
145 |
+
Generate your own Mr men or Little Misses.
|
|
|
146 |
</p>
|
147 |
</div>
|
148 |
"""
|
|
|
187 |
gr.HTML(
|
188 |
"""
|
189 |
<div class="footer">
|
190 |
+
<p> Gradio Demo by 🤗 @fffiloni
|
191 |
</p>
|
192 |
</div>
|
193 |
<div class="acknowledgments">
|
194 |
+
<p> Put in a text prompt and generate your own Mr Men or Little Misses character, no "prompt engineering" required!</p>
|
|
|
|
|
|
|
195 |
</div>
|
196 |
"""
|
197 |
)
|