Rohit8y commited on
Commit
26ba08b
1 Parent(s): cafc58d

fixing CLIP dependency issue

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  import gradio as gr
2
 
3
  from PIL import Image
@@ -7,10 +11,6 @@ import clip
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
 
16
  class OpenaAIClip(nn.Module):
 
1
+ import os
2
+
3
+ os.system('pip install git+https://github.com/openai/CLIP.git')
4
+
5
  import gradio as gr
6
 
7
  from PIL import Image
 
11
  import torch.nn as nn
12
  from torchvision.transforms import transforms
13
 
 
 
 
 
14
  device = device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
15
 
16
  class OpenaAIClip(nn.Module):