Spaces:
Sleeping
Sleeping
Update categories/random_/model.py
Browse files
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:
|
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:
|
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 |
-
|
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):
|