from fastapi import FastAPI from preprocessing import function_out app = FastAPI() @app.get("/") def health_check(): return {"msg":"app is healthy"} @app.post("/output") async def output(review: str): my_output = function_out(review) return my_output