Spaces:
Sleeping
Sleeping
jonathanjordan21
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -218,14 +218,14 @@ def build_outputs(results, descriptions, result_details, plate_number):
|
|
218 |
for i, (res,desc,detail) in enumerate(zip(results, descriptions, result_details)):
|
219 |
out += f"{i+1}. {detail}\nDetail perhitungan: {desc.replace('harga_jual', str(res))}\n"
|
220 |
|
221 |
-
out += "
|
222 |
|
223 |
if len(results) > 1:
|
224 |
out += " + ".join([f"Rp{x}" for x in results])
|
225 |
out += f" = {sum(results)}"
|
226 |
else:
|
227 |
out += str(results[0])
|
228 |
-
out += "\n----------------------------\n"
|
229 |
return out
|
230 |
|
231 |
|
|
|
218 |
for i, (res,desc,detail) in enumerate(zip(results, descriptions, result_details)):
|
219 |
out += f"{i+1}. {detail}\nDetail perhitungan: {desc.replace('harga_jual', str(res))}\n"
|
220 |
|
221 |
+
out += "----------------------------\nEstimasi biaya: "
|
222 |
|
223 |
if len(results) > 1:
|
224 |
out += " + ".join([f"Rp{x}" for x in results])
|
225 |
out += f" = {sum(results)}"
|
226 |
else:
|
227 |
out += str(results[0])
|
228 |
+
out += "\n----------------------------\n\n--------------------------------"
|
229 |
return out
|
230 |
|
231 |
|