apolinario commited on
Commit
190a8ea
1 Parent(s): acf2569
Files changed (2) hide show
  1. app.py +4 -0
  2. requirements.txt +2 -1
app.py CHANGED
@@ -19,6 +19,10 @@ from torch.nn import functional as F
19
  from torchvision import transforms
20
  from torchvision.transforms import functional as TF
21
  import torchvision.transforms as T
 
 
 
 
22
 
23
  from CLIP import clip
24
  import gradio as gr
 
19
  from torchvision import transforms
20
  from torchvision.transforms import functional as TF
21
  import torchvision.transforms as T
22
+ from git.repo.base import Repo
23
+
24
+ if not (path_exists(f"CLIP")):
25
+ Repo.clone_from("https://github.com/shonenkov-AI/rudalle-aspect-ratio", "CLIP")
26
 
27
  from CLIP import clip
28
  import gradio as gr
requirements.txt CHANGED
@@ -1,4 +1,6 @@
1
  -e git+https://github.com/CompVis/taming-transformers.git#egg=taming-transformers
 
 
2
  ftfy
3
  regex
4
  pandas
@@ -18,7 +20,6 @@ Pillow
18
  autokeras
19
  huggingface_hub
20
  kornia
21
- clip
22
  imageio
23
  pathvalidate
24
  stegano
 
1
  -e git+https://github.com/CompVis/taming-transformers.git#egg=taming-transformers
2
+ -e git+https://github.com/openai/CLIP/#egg=CLIP
3
+ gitpython
4
  ftfy
5
  regex
6
  pandas
 
20
  autokeras
21
  huggingface_hub
22
  kornia
 
23
  imageio
24
  pathvalidate
25
  stegano