from functools import lru_cache from .analyzer import EmotionAnalyzer # your file @lru_cache def get_model(): return EmotionAnalyzer()