DongfuJiang commited on
Commit
4a840ae
1 Parent(s): 80a82a9
Files changed (2) hide show
  1. serve/constants.py +2 -2
  2. serve/log_server.py +1 -1
serve/constants.py CHANGED
@@ -8,8 +8,8 @@ ROOT_PATH = os.getenv("ROOT_PATH", None)
8
  ELO_RESULTS_DIR = os.getenv("ELO_RESULTS_DIR", "./arena_elo/results/latest")
9
 
10
  LOG_SERVER = os.getenv("LOG_SERVER", "https://tigerai.ca")
11
- LOG_SERVER_SUBDOAMIN = os.getenv("LOG_SERVER_SUBDIR", "GenAI-Arena-hf-logs")
12
- LOG_SERVER_ADDR = os.getenv("LOG_SERVER_ADDR", f"{LOG_SERVER}/{LOG_SERVER_SUBDOAMIN}")
13
  # LOG SERVER API ENDPOINTS
14
  APPEND_JSON = "append_json"
15
  SAVE_IMAGE = "save_image"
 
8
  ELO_RESULTS_DIR = os.getenv("ELO_RESULTS_DIR", "./arena_elo/results/latest")
9
 
10
  LOG_SERVER = os.getenv("LOG_SERVER", "https://tigerai.ca")
11
+ LOG_SERVER_SUBDOAMIN = os.getenv("LOG_SERVER_SUBDOAMIN", "/GenAI-Arena-hf-logs")
12
+ LOG_SERVER_ADDR = os.getenv("LOG_SERVER_ADDR", f"{LOG_SERVER}{LOG_SERVER_SUBDOAMIN}")
13
  # LOG SERVER API ENDPOINTS
14
  APPEND_JSON = "append_json"
15
  SAVE_IMAGE = "save_image"
serve/log_server.py CHANGED
@@ -8,7 +8,7 @@ from .constants import LOG_SERVER_SUBDOAMIN, APPEND_JSON, SAVE_IMAGE, SAVE_LOG
8
 
9
  logger = build_logger("log_server", "log_server.log", add_remote_handler=False)
10
 
11
- app = APIRouter(prefix=f"/{LOG_SERVER_SUBDOAMIN}")
12
 
13
  @app.post(f"/{APPEND_JSON}")
14
  async def append_json(json_str: str = Form(...), file_name: str = Form(...)):
 
8
 
9
  logger = build_logger("log_server", "log_server.log", add_remote_handler=False)
10
 
11
+ app = APIRouter(prefix=LOG_SERVER_SUBDOAMIN)
12
 
13
  @app.post(f"/{APPEND_JSON}")
14
  async def append_json(json_str: str = Form(...), file_name: str = Form(...)):