Spaces:
Runtime error
Runtime error
File size: 375 Bytes
f8b25ce |
1 2 3 4 5 6 7 8 9 10 11 12 |
from pydantic import BaseModel, Field
from typing import Dict, Optional
class OCRTemplate(BaseModel):
template_name: str
fields: Dict[str, str]
user_id: Optional[str] = Field(None, description="ID of the user who owns the template. None for common templates.")
class OCRTemplateInDB(BaseModel):
template_name: str
fields: Dict[str, str]
user_id: str |