Spaces:
Running
on
Zero
Running
on
Zero
File size: 706 Bytes
e368cec 944dd2b e368cec 8dcd2f5 e368cec 944dd2b 350d553 e368cec 944dd2b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import os
LOGDIR = os.getenv("LOGDIR", "./GenAI-Arena-hf-logs/vote_log")
IMAGE_DIR = os.getenv("IMAGE_DIR", f"{LOGDIR}/images")
VIDEO_DIR = os.getenv("VIDEO_DIR", f"{LOGDIR}/videos")
SERVER_PORT = os.getenv("SERVER_PORT", 7860)
ROOT_PATH = os.getenv("ROOT_PATH", None)
ELO_RESULTS_DIR = os.getenv("ELO_RESULTS_DIR", "./arena_elo/results/latest")
LOG_SERVER = os.getenv("LOG_SERVER", "https://tigerai.ca")
LOG_SERVER_SUBDOMAIN = os.getenv("LOG_SERVER_SUBDOMAIN", "/GenAI-Arena-hf-logs")
LOG_SERVER_ADDR = os.getenv("LOG_SERVER_ADDR", f"{LOG_SERVER}{LOG_SERVER_SUBDOMAIN}")
# LOG SERVER API ENDPOINTS
APPEND_JSON = "append_json"
SAVE_IMAGE = "save_image"
SAVE_VIDEO = "save_video"
SAVE_LOG = "save_log"
|