qq1023 commited on
Commit
fe62aef
1 Parent(s): 3d10f34

Update categories/travel_flight/model.py

Browse files
Files changed (1) hide show
  1. categories/travel_flight/model.py +9 -22
categories/travel_flight/model.py CHANGED
@@ -6,30 +6,17 @@ from pydantic import BaseModel, Field
6
 
7
 
8
  class InformationExtractedFromABillReceipt(BaseModel):
9
- """
10
- response_schemas = [
11
- ResponseSchema(name="place (from)", description="place where flight starts/takes-off"),
12
- ResponseSchema(name="date (from)", description="date on which flight starts/takes-off (DD/MM/YYYY)"),
13
- ResponseSchema(name="time (from)", description="time at which flight starts/takes-off"),
14
- ResponseSchema(name="place (to)", description="place where flight end/lands"),
15
- ResponseSchema(name="date (to)", description="date on which flight end/lands (DD/MM/YYYY)"),
16
- ResponseSchema(name="time (to)", description="time at which flight end/lands"),
17
- ResponseSchema(name="PNR Number", description ="PNR Number of flight"),
18
- ResponseSchema(name="Amount", description="cost of flight ticket"),
19
- ResponseSchema(name="Billing Date", description="The date the invoice was issued"),
20
- ResponseSchema(name="Summary", description = "5-6 words short summary of purchased good(s)"),
21
- ))
22
- ]"""
23
 
24
- place_from: str = Field(..., title="place where flight starts/takes-off")
25
  date_from: date = Field(
26
- ..., title="date on which flight starts/takes-off (DD/MM/YYYY)"
27
  )
28
- time_from: time = Field(..., title="time at which flight starts/takes-off")
29
- place_to: str = Field(..., title="place where flight end/lands")
30
- date_to: date = Field(..., title="date on which flight end/lands (DD/MM/YYYY)")
31
- time_to: time = Field(..., title="time at which flight end/lands")
32
- uids: str = Field(..., title="PNR Number of flight")
33
- total: float = Field(..., title="cost of flight ticket")
34
  issue_date: date = Field(..., title="The date the invoice was issued")
35
  summary: str = Field(..., title="5-6 words short summary of purchased good(s)")
 
6
 
7
 
8
  class InformationExtractedFromABillReceipt(BaseModel):
9
+ ''''''
 
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
+ place_from: str = Field(..., title="place where journey starts")
12
  date_from: date = Field(
13
+ ..., title="date on which journey starts (DD/MM/YYYY)"
14
  )
15
+ time_from: time = Field(..., title="time at which journey starts")
16
+ place_to: str = Field(..., title="place where journey end")
17
+ date_to: date = Field(..., title="date on which journey end (DD/MM/YYYY)")
18
+ time_to: time = Field(..., title="time at which journey end")
19
+ uids: str = Field(..., title="The bill number/invoice number")
20
+ total: float = Field(..., title="cost of journey ticket")
21
  issue_date: date = Field(..., title="The date the invoice was issued")
22
  summary: str = Field(..., title="5-6 words short summary of purchased good(s)")