Spaces:
Runtime error
Runtime error
Add application file
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ if __name__ == '__main__':
|
|
13 |
|
14 |
device = torch.device('cpu')
|
15 |
config_path = os.path.join('models_file', 'config.pth')
|
16 |
-
model_path = os.path.join('models_file', '
|
17 |
tokenizer = AutoTokenizer.from_pretrained('models_file/tokenizer')
|
18 |
model = CustomModel(CFG, config_path=config_path, pretrained=False)
|
19 |
state = torch.load(model_path,
|
|
|
13 |
|
14 |
device = torch.device('cpu')
|
15 |
config_path = os.path.join('models_file', 'config.pth')
|
16 |
+
model_path = os.path.join('models_file', 'microsoft-deberta-base_0.9449373420387531_8_best.pth')
|
17 |
tokenizer = AutoTokenizer.from_pretrained('models_file/tokenizer')
|
18 |
model = CustomModel(CFG, config_path=config_path, pretrained=False)
|
19 |
state = torch.load(model_path,
|