Spaces:
Running
Running
File size: 313 Bytes
9add385 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from pydantic import BaseModel, HttpUrl
from typing import Sequence
class MyDataModel(BaseModel):
id: int
text: str
description: str
class MyDataSearchResults(BaseModel):
results: Sequence[MyDataModel]
class CreateMyDataModelEntity(BaseModel):
id: int
text: str
description: str |