johnowhitaker commited on
Commit
9b6dfb4
1 Parent(s): 57c1a5b

Update app.py

Browse files

../../../ seems like a good idea to do this with relative paths :)

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -128,10 +128,11 @@ import sys
128
  sys.path.append('./cloob-training')
129
  sys.path.append('./clip')
130
  # git isn't pulling the submodules for cloob-training so we need to add a path to clip
 
131
  with open('./cloob-training/cloob_training/model_pt.py', 'r+') as f:
132
  content = f.read()
133
  f.seek(0, 0)
134
- f.write("import sys\n" + "sys.path.append('../clip')\n" + '\n' + content)
135
 
136
  from cloob_training import model_pt, pretrained
137
 
 
128
  sys.path.append('./cloob-training')
129
  sys.path.append('./clip')
130
  # git isn't pulling the submodules for cloob-training so we need to add a path to clip
131
+ # I hate this :D
132
  with open('./cloob-training/cloob_training/model_pt.py', 'r+') as f:
133
  content = f.read()
134
  f.seek(0, 0)
135
+ f.write("import sys\n" + "sys.path.append('../../../clip')\n" + '\n' + content)
136
 
137
  from cloob_training import model_pt, pretrained
138