Sanshruth commited on
Commit
e9cedca
·
verified ·
1 Parent(s): 369659e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -34,9 +34,15 @@ import yaml
34
  from omegaconf import OmegaConf
35
  from CLIP import clip
36
  import os
37
- os.chdir('./taming-transformers')
 
 
 
 
 
38
  from taming.models.vqgan import VQModel
39
- os.chdir('..')
 
40
  from PIL import Image
41
  import cv2
42
  import imageio
 
34
  from omegaconf import OmegaConf
35
  from CLIP import clip
36
  import os
37
+
38
+ #os.chdir('./taming-transformers')
39
+ #from taming.models.vqgan import VQModel
40
+ #os.chdir('..')
41
+ taming_path = os.path.join(os.getcwd(), 'taming-transformers')
42
+ sys.path.append(taming_path)
43
  from taming.models.vqgan import VQModel
44
+
45
+
46
  from PIL import Image
47
  import cv2
48
  import imageio