INNER CODE UNIT · Python

Config

DmitryRyumin/ICCV-2023-25-Papers · code/markdown_to_json_parser.py:27

class Config:
    GITHUB_TOKEN = os.getenv("INPUT_PAPER_TOKEN") or os.getenv("PAPER_TOKEN")
    GITHUB_WORKSPACE = os.getenv("GITHUB_WORKSPACE", "/github/workspace")
    MARKDOWN_DIRECTORY = "sections"
    OUTPUT_DIRECTORY = "json_data"
    MARKDOWN_DIRECTORY_LOCAL = Path("./sections").resolve()
    OUTPUT_DIRECTORY_LOCAL = Path("./local_json_data").resolve()
    REPO_OWNER = owner
    REPO_NAME = repo_name
    COMMIT_MESSAGE = "Update files"


def print_colored_status(status):
    color_codes = {"No table": 91, "Success": 92, "Error": 91}
    color_code = color_codes.get(status, 0)  # Default to red color if not found
    return f"\033[{color_code}m{status}\033[0m" if color_code else status

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…