Spaces:
Sleeping
Sleeping
File size: 1,260 Bytes
317211f fe62aef 317211f 4f806aa fe62aef 4f806aa 22d7b5f 50b87bc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
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")
# uids: str = Field(..., title="The bill number/invoice number")
# total: float = Field(..., title="cost of journey ticket")
# issue_date: date = Field(..., title="The date the invoice was issued")
# summary: str = Field(..., title="5-6 words short summary of purchased good(s)")
uids: str = Field(..., title="The bill number/invoice number")
total: float = Field(..., title="cost of journey ticket converted from given currency to INR")
issue_date: date = Field(..., title="The date the invoice was issued")
summary: str = Field(..., title="5-6 words short summary of purchased good(s)")
|