Spaces:
No application file
No application file
File size: 291 Bytes
2c56f73 |
1 2 3 4 5 6 7 8 9 10 11 12 |
"""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.")
|