File size: 844 Bytes
d2bf885
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import os

from pydantic_settings import BaseSettings


class Settings(BaseSettings):
    # TOKEN: str
    OWNER: str = "Samoed"
    REPO_ID: str = f"{OWNER}/Encodechka"
    QUEUE_REPO: str = f"{OWNER}/requests"
    RESULTS_REPO: str = f"{OWNER}/results"
    CACHE_PATH: str = "."
    EVAL_REQUESTS_PATH: str = os.path.join(CACHE_PATH, "eval-queue")
    EVAL_RESULTS_PATH: str = os.path.join(CACHE_PATH, "eval-results")
    EVAL_REQUESTS_PATH_BACKEND: str = os.path.join(CACHE_PATH, "eval-queue-bk")
    EVAL_RESULTS_PATH_BACKEND: str = os.path.join(CACHE_PATH, "eval-results-bk")
    ENCODECHKA_URL: str = "https://raw.githubusercontent.com/avidale/encodechka/master/README.md"
    LEADERBOARD_FILE_PATH: str = os.path.join(CACHE_PATH, "leaderboard.csv")


def get_settings():
    return Settings()


# API = HfApi(token=get_settings().TOKEN)