saranbalan commited on
Commit
ab4208d
·
verified ·
1 Parent(s): dff67aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
21
 
22
 
23
  model_id1 = os.getenv("API_KEY")
24
- pipe = StableDiffusionPipeline.from_pretrained(model_id1, torch_dtype=torch_dtype, use_safetensors=True)
25
  pipe = pipe.to('cpu')
26
 
27
  # Updated function for text generation using the new API structure
 
21
 
22
 
23
  model_id1 = os.getenv("API_KEY")
24
+ pipe = StableDiffusionPipeline.from_pretrained(model_id1, torch_dtype=torch_dtype, low_cpu_mem_usage=True, use_safetensors=True)
25
  pipe = pipe.to('cpu')
26
 
27
  # Updated function for text generation using the new API structure