bvd757 commited on
Commit
645fa32
·
1 Parent(s): afd8852
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -128,6 +128,8 @@ def load_model(test=False):
128
  with open(f'{path}/label_to_theme.json', 'r') as f:
129
  label_to_theme = json.load(f)
130
  except:
 
 
131
  path = ''
132
  with open(f'{path}/label_to_theme.json', 'r') as f:
133
  label_to_theme = json.load(f)
 
128
  with open(f'{path}/label_to_theme.json', 'r') as f:
129
  label_to_theme = json.load(f)
130
  except:
131
+ import os
132
+ assert os.path.abspath(__file__) == "hello!"
133
  path = ''
134
  with open(f'{path}/label_to_theme.json', 'r') as f:
135
  label_to_theme = json.load(f)