Spaces:
Configuration error
Configuration error
| import torch | |
| import os | |
| DATA_PATH = '/app/synthetic_transactions_samples_5000.csv' | |
| TOKENIZER_PATH = './tokenizer/' | |
| LABEL_ENCODERS_PATH = './label_encoders.pkl' | |
| MODEL_SAVE_DIR = './saved_models/' | |
| PREDICTIONS_SAVE_DIR = './predictions/' | |
| TEXT_COLUMN = "Sanction_Context" | |
| LABEL_COLUMNS = [ | |
| "Red_Flag_Reason", | |
| "Maker_Action", | |
| "Escalation_Level", | |
| "Risk_Category", | |
| "Risk_Drivers", | |
| "Investigation_Outcome" | |
| ] | |
| MAX_LEN = 128 | |
| DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu") | |
| ROBERTA_MODEL_NAME = 'roberta-base' | |