justinpinkney commited on
Commit
25c5769
1 Parent(s): 29a8b69

clear cache

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -27,6 +27,8 @@ clip_model, preprocess = clip.load("ViT-L/14", device=device)
27
 
28
  n_inputs = 5
29
 
 
 
30
  @functools.lru_cache()
31
  def get_url_im(t):
32
  user_agent = {'User-agent': 'gradio-app'}
@@ -207,4 +209,4 @@ The model was trained on a subset of LAION Improved Aesthetics at a resolution o
207
 
208
  """)
209
 
210
- demo.launch()
 
27
 
28
  n_inputs = 5
29
 
30
+ torch.cuda.empty_cache()
31
+
32
  @functools.lru_cache()
33
  def get_url_im(t):
34
  user_agent = {'User-agent': 'gradio-app'}
 
209
 
210
  """)
211
 
212
+ demo.launch()