Spaces:
Running
Running
app fixes_v3
Browse files
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 |
-
|
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 |
|