INNER CODE UNIT · Python

Response

maxpumperla/learning_ray · notebooks/app.py:130

class Response(BaseModel):
    success: bool
    message: str = ""
    summary: str = ""
    named_entities: List[str] = []


from fastapi import FastAPI

app = FastAPI()


@serve.deployment
@serve.ingress(app)
class NLPPipelineDriver:
    def __init__(self, sentiment_analysis, summarizer, entity_recognition):
        self._sentiment_analysis = sentiment_analysis
        self._summarizer = summarizer

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…