Spaces:
Sleeping
Sleeping
Added unique filter for total amounts
Browse files
app.py
CHANGED
@@ -279,7 +279,8 @@ def poc_production_pipeline_without_verification(file_content):
|
|
279 |
# Format all decimals
|
280 |
candidate_total_amounts = list(map(format_text_decimal,
|
281 |
total_amount_baseline(file_content=file_content).candidate_total_amounts))
|
282 |
-
|
|
|
283 |
|
284 |
# For UI visualisation purposes, create a list of tuples where the second tuple value is empty
|
285 |
candidate_invoices_for_UI = []
|
|
|
279 |
# Format all decimals
|
280 |
candidate_total_amounts = list(map(format_text_decimal,
|
281 |
total_amount_baseline(file_content=file_content).candidate_total_amounts))
|
282 |
+
# Only keep unique amounts
|
283 |
+
candidate_total_amounts = list(set(candidate_total_amounts))
|
284 |
|
285 |
# For UI visualisation purposes, create a list of tuples where the second tuple value is empty
|
286 |
candidate_invoices_for_UI = []
|