Ahsen Khaliq commited on
Commit
4787ac2
1 Parent(s): 585eb95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,10 +36,10 @@ model, preprocess = clip.load(clip_model)
36
 
37
  os.chdir("..")
38
 
39
- if not os.path.exists('/content/CLIP_vecs.npy'):
40
  os.system("gdown https://drive.google.com/u/0/uc?id=1R2Ra6Bf7IKwM2eZMKwFvyjkWRyOulQaP&export=download")
41
 
42
- if os.path.exists('/content/CLIP_vecs.npy'):
43
  CLIP_vecs = torch.from_numpy(np.load('CLIP_vecs.npy'))
44
  seeded_z = torch.from_numpy(np.stack([np.random.RandomState(seed).randn(G.w_dim) for seed in range(CLIP_vecs.shape[0])]))
45
 
 
36
 
37
  os.chdir("..")
38
 
39
+ if not os.path.exists('CLIP_vecs.npy'):
40
  os.system("gdown https://drive.google.com/u/0/uc?id=1R2Ra6Bf7IKwM2eZMKwFvyjkWRyOulQaP&export=download")
41
 
42
+ if os.path.exists('CLIP_vecs.npy'):
43
  CLIP_vecs = torch.from_numpy(np.load('CLIP_vecs.npy'))
44
  seeded_z = torch.from_numpy(np.stack([np.random.RandomState(seed).randn(G.w_dim) for seed in range(CLIP_vecs.shape[0])]))
45