Spaces:
Build error
Build error
File size: 1,243 Bytes
0d99179 |
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 28 29 30 |
from __future__ import annotations
from datetime import datetime
from pydantic import BaseModel, Field
class InformationExtractedFromABillReceipt(BaseModel):
"""
1. Hotel Name: [Hotel Name]
2. Address: [Hotel Address]
3. Bill number/Invoice number: [Bill Number]
4. booking ID / Confirmation ID / Booking #: [Booking ID]
5. Check-in Date and Time: [Check-in Date Time]
6. Check-out Date and Time: [Check-out Date Time]
7. Total Amount: [Total Amount Charged]
8. Booking platform: [Booking Platform]
9. Bill date: [Bill Date]
"""
hostel_name: str = Field(..., title="The name of the hotel")
address: str = Field(..., title="The address of the hotel")
bill_number: str = Field(..., title="The bill number/invoice number")
booking_id: str = Field(..., title="The booking ID/confirmation ID/booking number")
check_in_date_time: datetime = Field(..., title="The check-in date and time")
check_out_date_time: datetime = Field(..., title="The check-out date and time")
total_amount_charged: float = Field(..., title="The total amount charged")
booking_platform: str = Field(..., title="The booking platform")
bill_date: datetime = Field(..., title="The bill date")
|