Rohit8y commited on
Commit
cafc58d
·
1 Parent(s): 66c8895

fixing CLIP dependency issue

Browse files
Files changed (2) hide show
  1. app.py +3 -0
  2. requirements.txt +0 -1
app.py CHANGED
@@ -7,6 +7,9 @@ import clip
7
  import torch.nn as nn
8
  from torchvision.transforms import transforms
9
 
 
 
 
10
 
11
  device = device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
12
 
 
7
  import torch.nn as nn
8
  from torchvision.transforms import transforms
9
 
10
+ import os
11
+
12
+ os.system('pip install git+https://github.com/openai/CLIP.git')
13
 
14
  device = device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
15
 
requirements.txt CHANGED
@@ -1,4 +1,3 @@
1
- openai-clip==1.0
2
  gradio==4.19.1
3
  Pillow==10.2.0
4
  torch==1.13.0
 
 
1
  gradio==4.19.1
2
  Pillow==10.2.0
3
  torch==1.13.0