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