from models.prediction import Prediction from repositories.intents_repository import IntentsRepository class IntentsService: @staticmethod def get_intent_by_id(prediction: Prediction): return IntentsRepository.get_elem_by_id[prediction.label]