Spaces:
Sleeping
Sleeping
ahmedmbutt
commited on
Commit
•
ee55332
1
Parent(s):
5cf7dee
fixed bugs
Browse files
main.py
CHANGED
@@ -18,11 +18,11 @@ from diffusers.pipelines.stable_diffusion import StableDiffusionSafetyChecker
|
|
18 |
async def lifespan(app: FastAPI):
|
19 |
feature_extractor = CLIPFeatureExtractor.from_pretrained(
|
20 |
"openai/clip-vit-base-patch32"
|
21 |
-
)
|
22 |
|
23 |
safety_checker = StableDiffusionSafetyChecker.from_pretrained(
|
24 |
"CompVis/stable-diffusion-safety-checker"
|
25 |
-
)
|
26 |
|
27 |
text2img = AutoPipelineForText2Image.from_pretrained(
|
28 |
"stabilityai/sd-turbo",
|
|
|
18 |
async def lifespan(app: FastAPI):
|
19 |
feature_extractor = CLIPFeatureExtractor.from_pretrained(
|
20 |
"openai/clip-vit-base-patch32"
|
21 |
+
)
|
22 |
|
23 |
safety_checker = StableDiffusionSafetyChecker.from_pretrained(
|
24 |
"CompVis/stable-diffusion-safety-checker"
|
25 |
+
)
|
26 |
|
27 |
text2img = AutoPipelineForText2Image.from_pretrained(
|
28 |
"stabilityai/sd-turbo",
|