Spaces:
Running
Running
jadehardouin
commited on
Commit
•
7432d34
1
Parent(s):
94ce651
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def compare(tco1, tco2, labor_cost1, labor_cost2, dropdown, dropdown2):
|
|
29 |
comparison_result3 = ""
|
30 |
|
31 |
if r < 1:
|
32 |
-
comparison_result = f"The cost/request of the {dropdown2} service is {1/r:.5f} times more expensive than the one of the {dropdown} service."
|
33 |
if labor_cost1 > labor_cost2:
|
34 |
comparison_result2 = f"However, it will cost a lot more to deploy the set-up for the {dropdown} service because the labor cost per month is of ${labor_cost1}, compared to a labor cost per month of ${labor_cost2} for the {dropdown2} solution."
|
35 |
meeting_point = (labor_cost2 - labor_cost1) / (tco1 - tco2)
|
@@ -40,7 +40,7 @@ def compare(tco1, tco2, labor_cost1, labor_cost2, dropdown, dropdown2):
|
|
40 |
comparison_result2 = f"Additionally, both services have the same labor cost per month."
|
41 |
|
42 |
elif r > 1:
|
43 |
-
comparison_result = f"The cost/request of the {dropdown2} service is {r:.5f} times cheaper than the one of the {dropdown} service."
|
44 |
if labor_cost1 > labor_cost2:
|
45 |
comparison_result2 = f"Additionally, it will cost a lot more to deploy the set-up for the {dropdown} service because the labor cost per month is of ${labor_cost1}, compared to a labor cost per month of ${labor_cost2} for the {dropdown2} solution."
|
46 |
elif labor_cost1 < labor_cost2:
|
|
|
29 |
comparison_result3 = ""
|
30 |
|
31 |
if r < 1:
|
32 |
+
comparison_result = f"The cost/request of the second {dropdown2} service is {1/r:.5f} times more expensive than the one of the first {dropdown} service."
|
33 |
if labor_cost1 > labor_cost2:
|
34 |
comparison_result2 = f"However, it will cost a lot more to deploy the set-up for the {dropdown} service because the labor cost per month is of ${labor_cost1}, compared to a labor cost per month of ${labor_cost2} for the {dropdown2} solution."
|
35 |
meeting_point = (labor_cost2 - labor_cost1) / (tco1 - tco2)
|
|
|
40 |
comparison_result2 = f"Additionally, both services have the same labor cost per month."
|
41 |
|
42 |
elif r > 1:
|
43 |
+
comparison_result = f"The cost/request of the second {dropdown2} service is {r:.5f} times cheaper than the one of the first {dropdown} service."
|
44 |
if labor_cost1 > labor_cost2:
|
45 |
comparison_result2 = f"Additionally, it will cost a lot more to deploy the set-up for the {dropdown} service because the labor cost per month is of ${labor_cost1}, compared to a labor cost per month of ${labor_cost2} for the {dropdown2} solution."
|
46 |
elif labor_cost1 < labor_cost2:
|