Spaces:
Runtime error
Runtime error
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 | |