peterpeter8585 commited on
Commit
731fc0b
1 Parent(s): 828c16a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,7 +4,8 @@ from huggingface_hub import InferenceClient
4
  import random
5
  from diffusers import DiffusionPipeline
6
  import torch
7
-
 
8
  device = "cuda" if torch.cuda.is_available() else "cpu"
9
 
10
  if torch.cuda.is_available():
 
4
  import random
5
  from diffusers import DiffusionPipeline
6
  import torch
7
+ import transformers
8
+ transformers.utils.move_cache()
9
  device = "cuda" if torch.cuda.is_available() else "cpu"
10
 
11
  if torch.cuda.is_available():