Spaces:
Runtime error
Runtime error
File size: 586 Bytes
26d66c1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # -*- coding: utf-8 -*-
from src.logging import logger
from src.models.pipeline.prediction import ModelPredictionPipeline
from src.models.configuration import ConfigurationManager
class PredictionPipeline:
def __init__(self):
pass
def predict(self, query):
""" Run model prediction pipeline """
try:
model_prediction_pipeline = ModelPredictionPipeline()
output = model_prediction_pipeline.main(query)
return output
except Exception as e:
logger.exception(e)
raise e
|