ahmedmbutt commited on
Commit
ee55332
1 Parent(s): 5cf7dee

fixed bugs

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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
- ).to("cpu")
22
 
23
  safety_checker = StableDiffusionSafetyChecker.from_pretrained(
24
  "CompVis/stable-diffusion-safety-checker"
25
- ).to("cpu")
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",