Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,9 @@ def system_prompt() -> str:
|
|
20 |
Rules:
|
21 |
1. For total_cost, use the highest monetary value in the text.
|
22 |
2. Customer_Details will consist of another json object consisting the keys Customer_Name,Customer_Address,Email Address,Phone Number,Customer ID,Billing Address,Shipping Address,Account Number,Tax ID/VAT Number,Company Name,Payment Method.
|
23 |
-
3.
|
|
|
|
|
24 |
6. If any value is not found, return null.
|
25 |
7. If all values are null, return null.
|
26 |
Ensure the strictly that output is a valid JSON object containing strictly the above keys, without any explanations.
|
|
|
20 |
Rules:
|
21 |
1. For total_cost, use the highest monetary value in the text.
|
22 |
2. Customer_Details will consist of another json object consisting the keys Customer_Name,Customer_Address,Email Address,Phone Number,Customer ID,Billing Address,Shipping Address,Account Number,Tax ID/VAT Number,Company Name,Payment Method.
|
23 |
+
3. Look carefully for any address labeled as "Bill To" or "Billing Address".Look for this on the left side of the layout.
|
24 |
+
4.Look carefully for any address labeled as "Ship To" or "Shipping Address".Look for this on the right side of the layout
|
25 |
+
5.Products will consist of another json object consisting of keys Product_name_1,quantity,unit_price.
|
26 |
6. If any value is not found, return null.
|
27 |
7. If all values are null, return null.
|
28 |
Ensure the strictly that output is a valid JSON object containing strictly the above keys, without any explanations.
|