Spaces:
Paused
Paused
Commit
·
7e0e8fc
1
Parent(s):
23bfa5a
Update app1.py
Browse files
app1.py
CHANGED
@@ -5,6 +5,32 @@ import modin.pandas as pd
|
|
5 |
from PIL import Image
|
6 |
from diffusers import DiffusionPipeline, StableDiffusionLatentUpscalePipeline
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
9 |
pipe = DiffusionPipeline.from_pretrained("dreamlike-art/dreamlike-photoreal-2.0", torch_dtype=torch.float16, safety_checker=None)
|
10 |
upscaler = StableDiffusionLatentUpscalePipeline.from_pretrained("stabilityai/sd-x2-latent-upscaler", torch_dtype=torch.float16)
|
|
|
5 |
from PIL import Image
|
6 |
from diffusers import DiffusionPipeline, StableDiffusionLatentUpscalePipeline
|
7 |
|
8 |
+
css = """
|
9 |
+
<style>
|
10 |
+
.finetuned-diffusion-div {
|
11 |
+
text-align: center;
|
12 |
+
max-width: 700px;
|
13 |
+
margin: 0 auto;
|
14 |
+
}
|
15 |
+
.finetuned-diffusion-div div {
|
16 |
+
display: inline-flex;
|
17 |
+
align-items: center;
|
18 |
+
gap: 0.8rem;
|
19 |
+
font-size: 1.75rem;
|
20 |
+
}
|
21 |
+
.finetuned-diffusion-div div h1 {
|
22 |
+
font-weight: 900;
|
23 |
+
margin-bottom: 7px;
|
24 |
+
}
|
25 |
+
.finetuned-diffusion-div p {
|
26 |
+
margin-bottom: 10px;
|
27 |
+
font-size: 94%;
|
28 |
+
}
|
29 |
+
.finetuned-diffusion-div p a {
|
30 |
+
text-decoration: underline;
|
31 |
+
}
|
32 |
+
</style>
|
33 |
+
|
34 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
35 |
pipe = DiffusionPipeline.from_pretrained("dreamlike-art/dreamlike-photoreal-2.0", torch_dtype=torch.float16, safety_checker=None)
|
36 |
upscaler = StableDiffusionLatentUpscalePipeline.from_pretrained("stabilityai/sd-x2-latent-upscaler", torch_dtype=torch.float16)
|