Spaces:
Sleeping
Sleeping
from __future__ import annotations | |
from datetime import date, time | |
from pydantic import BaseModel, Field | |
class InformationExtractedFromABillReceipt(BaseModel): | |
'''''' | |
place_from: str = Field(..., title="place where journey starts") | |
date_from: date = Field( | |
..., title="date on which journey starts (DD/MM/YYYY)" | |
) | |
time_from: time = Field(..., title="time at which journey starts") | |
place_to: str = Field(..., title="place where journey end") | |
date_to: date = Field(..., title="date on which journey end (DD/MM/YYYY)") | |
time_to: time = Field(..., title="time at which journey end") | |
amount: float = Field(..., title="cost of journey ticket") | |