qq1023 commited on
Commit
53901bc
1 Parent(s): 23e5d8d

Update categories/random_/model.py

Browse files
Files changed (1) hide show
  1. categories/random_/model.py +6 -6
categories/random_/model.py CHANGED
@@ -12,14 +12,14 @@ from pydantic import BaseModel, Field, constr, validator, ValidationError
12
 
13
 
14
  class TaxItem(BaseModel):
15
- gst: float = Field(
16
  ...,
17
  title="The total GST tax amount (IGST + CGST + SGST + etc) as a single number",
18
  )
19
 
20
 
21
  class TaxItem1(BaseModel):
22
- vat: float = Field(..., title="The total VAT present in the invoice")
23
 
24
 
25
  class TaxNumberItem(BaseModel):
@@ -50,10 +50,10 @@ class SellerDetails(BaseModel):
50
 
51
  class UIDDict(BaseModel):
52
  invoice_number: str = Field(..., title="The invoice number")
53
- other_uids: Dict[str, str] = Field(
54
- ...,
55
- title="Key-value pairs of uniquely identifying numbers (UIDs) like order number, bill number, payment ID, etc but not the invoice number",
56
- )
57
 
58
 
59
  class InformationExtractedFromABillReceipt(BaseModel):
 
12
 
13
 
14
  class TaxItem(BaseModel):
15
+ gst: str = Field(
16
  ...,
17
  title="The total GST tax amount (IGST + CGST + SGST + etc) as a single number",
18
  )
19
 
20
 
21
  class TaxItem1(BaseModel):
22
+ vat: str = Field(..., title="The total VAT present in the invoice")
23
 
24
 
25
  class TaxNumberItem(BaseModel):
 
50
 
51
  class UIDDict(BaseModel):
52
  invoice_number: str = Field(..., title="The invoice number")
53
+ # other_uids: Dict[str, str] = Field(
54
+ # ...,
55
+ # title="Key-value pairs of uniquely identifying numbers (UIDs) like order number, bill number, payment ID, etc but not the invoice number",
56
+ # )
57
 
58
 
59
  class InformationExtractedFromABillReceipt(BaseModel):