Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,10 @@ def calculate_bandwidth(users: int, usage: Dict[str, int]) -> float:
|
|
35 |
|
36 |
total_bandwidth = sum(usage_requirements[activity] * usage.get(activity, 0) for activity in usage_requirements)
|
37 |
overhead = 1.2 # 20% overhead for seamless experience
|
38 |
-
|
|
|
|
|
|
|
39 |
|
40 |
|
41 |
final_answer = FinalAnswerTool()
|
|
|
35 |
|
36 |
total_bandwidth = sum(usage_requirements[activity] * usage.get(activity, 0) for activity in usage_requirements)
|
37 |
overhead = 1.2 # 20% overhead for seamless experience
|
38 |
+
# Apply overhead of 1.2
|
39 |
+
total_bandwidth_with_overhead = total_bandwidth * overhead
|
40 |
+
|
41 |
+
return round(total_bandwidth_with_overhead, 2)
|
42 |
|
43 |
|
44 |
final_answer = FinalAnswerTool()
|