Spaces:
Sleeping
Sleeping
from pydantic import BaseModel, Field | |
from typing import Optional | |
class rephraseparam(BaseModel): | |
texttorephrase: str = Field(..., description="input text for summarization") | |
tone : Optional[str] = Field('professional', description="text summary will follow tone: casual/professional/straightforward") | |
maxtokens : Optional[int] = Field(200, description="max length for the output") | |
language : Optional[str] = Field("english", description="summary needs to be in any specific language") |