romanbredehoft-zama's picture
Adding deployment files and updating app
c119738
raw
history blame
No virus
928 Bytes
"All constants used in the project."
from pathlib import Path
# The directory of this project
REPO_DIR = Path(__file__).parent
# This repository's main necessary directories
DEPLOYMENT_PATH = REPO_DIR / "deployment_files"
FHE_KEYS = REPO_DIR / ".fhe_keys"
CLIENT_FILES = REPO_DIR / "client_files"
SERVER_FILES = REPO_DIR / "server_files"
# Create the necessary directories
FHE_KEYS.mkdir(exist_ok=True)
CLIENT_FILES.mkdir(exist_ok=True)
SERVER_FILES.mkdir(exist_ok=True)
# Store the server's URL
SERVER_URL = "http://localhost:8000/"
RANDOM_STATE = 0
INITIAL_INPUT_SHAPE = (1, 49)
CLIENT_TYPES = ["user", "bank", "third_party"]
INPUT_INDEXES = {
"user": 0,
"bank": 1,
"third_party": 2,
}
START_POSITIONS = {
"user": 0, # First position: start from 0
"bank": 17, # Second position: start from len(input_user)
"third_party": 33, # Third position: start from len(input_user) + len(input_bank)
}