Initial upload: HS Code Classifier (English, 6-digit)
Browse files- inference.py +1 -1
inference.py
CHANGED
|
@@ -9,7 +9,7 @@ import math
|
|
| 9 |
|
| 10 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 11 |
|
| 12 |
-
MODEL_DIR = '
|
| 13 |
FULL_MODEL_PATH = os.path.join(MODEL_DIR, 'cascaded_best.pt')
|
| 14 |
CONFIG_PATH = os.path.join(MODEL_DIR, 'model_config.json')
|
| 15 |
TOKENIZER_PATH = os.path.join(MODEL_DIR, 'tokenizer')
|
|
|
|
| 9 |
|
| 10 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 11 |
|
| 12 |
+
MODEL_DIR = 'model'
|
| 13 |
FULL_MODEL_PATH = os.path.join(MODEL_DIR, 'cascaded_best.pt')
|
| 14 |
CONFIG_PATH = os.path.join(MODEL_DIR, 'model_config.json')
|
| 15 |
TOKENIZER_PATH = os.path.join(MODEL_DIR, 'tokenizer')
|