Spaces:
Sleeping
Sleeping
| from pydantic import BaseModel, constr | |
| from typing import Union, Optional | |
| class Flashcard(BaseModel): | |
| name: constr(max_length=100, min_length=5) # type: ignore | |
| translation: Optional[str] = "" | |
| sample_sentence: Optional[str] = "" | |