Spaces:
No application file
No application file
| """Template for custom function or Pydantic model.""" | |
| from pydantic import BaseModel | |
| from pydantic import Field | |
| class MyModel(BaseModel): | |
| """My model.""" | |
| attr1: str = Field(..., description="The first attribute.") | |
| attr2: int = Field(..., description="The second attribute.") | |