alexeyGod commited on
Commit
62c57be
·
verified ·
1 Parent(s): 9dbf5a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -58,11 +58,12 @@ var_2="nota-ai/bk-sdm-small"
58
 
59
 
60
  pipe = StableDiffusionPipeline.from_pretrained(
61
- var_1, torch_dtype=torch_dtype, use_safetensors=True)
62
  #pipe.vae = AutoencoderTiny.from_pretrained(
63
  # "sayakpaul/taesd-diffusers", torch_dtype=torch_dtype, use_safetensors=True)
64
  pipe = pipe.to(device)
65
  pipe.enable_vae_tiling()
 
66
 
67
  @spaces.GPU(duration=25) #[uncomment to use ZeroGPU]
68
  def infer(
 
58
 
59
 
60
  pipe = StableDiffusionPipeline.from_pretrained(
61
+ model_repo_id, torch_dtype=torch_dtype, use_safetensors=True)
62
  #pipe.vae = AutoencoderTiny.from_pretrained(
63
  # "sayakpaul/taesd-diffusers", torch_dtype=torch_dtype, use_safetensors=True)
64
  pipe = pipe.to(device)
65
  pipe.enable_vae_tiling()
66
+ pipe.enable_sequential_cpu_offload()
67
 
68
  @spaces.GPU(duration=25) #[uncomment to use ZeroGPU]
69
  def infer(