bvd757 commited on
Commit
a0a0073
·
1 Parent(s): 645fa32

app fixes_v3

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -128,9 +128,7 @@ 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
- 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)
136
 
 
128
  with open(f'{path}/label_to_theme.json', 'r') as f:
129
  label_to_theme = json.load(f)
130
  except:
131
+ path = '/home/user/app'
 
 
132
  with open(f'{path}/label_to_theme.json', 'r') as f:
133
  label_to_theme = json.load(f)
134