/
M1nX
/
SE_FastAPI_Example
Обзор
Документация
Войти
/
M1nX
/
SE_FastAPI_Example
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
deps.py
12 строк
305 B
Evgeniy Rudenko
feat: added tests
11 май 2026, 18:36
11 май 2026, 18:36
9faef64
Код
Авторство
О чём код?
from functools import lru_cache from config import settings @lru_cache(maxsize=1) def get_classifier(): from transformers import pipeline if settings.sentiment_model: return pipeline(settings.sentiment_task, model=settings.sentiment_model) return pipeline(settings.sentiment_task)