Spaces:
Running
Running
app fixes
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ def forward(self,
|
|
124 |
def load_model(test=False):
|
125 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
126 |
try:
|
127 |
-
path = '
|
128 |
with open(f'{path}/label_to_theme.json', 'r') as f:
|
129 |
label_to_theme = json.load(f)
|
130 |
except:
|
|
|
124 |
def load_model(test=False):
|
125 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
126 |
try:
|
127 |
+
path = 'Papers_classification'
|
128 |
with open(f'{path}/label_to_theme.json', 'r') as f:
|
129 |
label_to_theme = json.load(f)
|
130 |
except:
|