Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -258,10 +258,10 @@ def build_outputs(results, descriptions, result_details, plate_number):
|
|
258 |
out += "\n\n\nEstimasi Biaya: "
|
259 |
|
260 |
if len(results) > 1:
|
261 |
-
out += " + ".join([
|
262 |
-
out +=
|
263 |
else:
|
264 |
-
out +=
|
265 |
|
266 |
out += "\n\n----------------------------"
|
267 |
# out += "\n----------------------------\n\n--------------------------------"
|
|
|
258 |
out += "\n\n\nEstimasi Biaya: "
|
259 |
|
260 |
if len(results) > 1:
|
261 |
+
out += " + ".join(["Rp{:,}".format(x) for x in results])
|
262 |
+
out += " = {:,}".format(sum(results))
|
263 |
else:
|
264 |
+
out += "{:,}".format(results[0])
|
265 |
|
266 |
out += "\n\n----------------------------"
|
267 |
# out += "\n----------------------------\n\n--------------------------------"
|