File size: 503 Bytes
623e0d6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os
from pathlib import Path

# Base directory
BASE_DIR = Path(__file__).resolve().parent.parent

# Flask configuration
DEBUG = True
SECRET_KEY = os.getenv('SECRET_KEY', 'your-secret-key-here')

# File upload configuration
UPLOAD_FOLDER = os.getenv('UPLOAD_FOLDER', BASE_DIR / 'uploads')
ENCODED_FOLDER = os.getenv('ENCODED_FOLDER', BASE_DIR / 'encoded')

# Create required directories
Path(UPLOAD_FOLDER).mkdir(parents=True, exist_ok=True)
Path(ENCODED_FOLDER).mkdir(parents=True, exist_ok=True)