wei commited on
Commit
5a30c2a
·
1 Parent(s): 49082b1

move cache

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -4,6 +4,9 @@ import random
4
  #import spaces #[uncomment to use ZeroGPU]
5
  from diffusers import DiffusionPipeline, FluxPipeline
6
  import torch
 
 
 
7
 
8
  device = "cuda" if torch.cuda.is_available() else "cpu"
9
  model_repo_id = "black-forest-labs/FLUX.1-schnell" #Replace to the model you would like to use
 
4
  #import spaces #[uncomment to use ZeroGPU]
5
  from diffusers import DiffusionPipeline, FluxPipeline
6
  import torch
7
+ import transformers
8
+
9
+ transformers.utils.move_cache()
10
 
11
  device = "cuda" if torch.cuda.is_available() else "cpu"
12
  model_repo_id = "black-forest-labs/FLUX.1-schnell" #Replace to the model you would like to use