File size: 450 Bytes
79b7942
 
 
 
 
 
 
 
 
 
29b3fb4
79b7942
 
 
 
12e5fcc
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os

APP_NAME = "Speech Analysis"
APP_DESCRIPTION = "Speech Analysis ML Inference API"
APP_VERSION = "v1"

API_BASE = "/"
API_PREFIX = "/api/" + APP_VERSION

BASE_PATH = os.path.dirname(os.path.abspath(__file__)).split("/app")[0]
UPLOAD_DIR = os.path.join("/tmp", "audio")
STATIC_DIR = os.path.join(BASE_PATH, "app", "static")

API_READINESS = "/readiness"
API_LIVENESS = "/liveness"
OPENAPI_URL = API_BASE + "openapi.json"
DOCS_URL = API_BASE