File size: 500 Bytes
62d0c8c
 
 
 
 
 
 
 
1993407
1
2
3
4
5
6
7
8
9
10
"""Resolve project paths so the app works no matter the current working directory
(local `streamlit run` or Hugging Face Spaces)."""
import os

# this file is <root>/src/utils/paths.py -> go up 3 levels to the project root
ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
ARTIFACTS = os.path.join(ROOT, "artifacts")
LEXICON = os.path.join(ROOT, "colloquial-indonesian-lexicon.csv")
LOGO = os.path.join(ROOT, "Topic Pulse.png")  # drop the logo PNG in the repo root