Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,18 +24,18 @@ def calculate_bandwidth(users: int, usage: Dict[str, int]) -> float:
|
|
24 |
"""
|
25 |
Calculate the recommended internet speed based on user inputs.
|
26 |
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
"""
|
40 |
usage_requirements = {
|
41 |
"browsing": 1, # Mbps per user
|
@@ -52,7 +52,6 @@ def calculate_bandwidth(users: int, usage: Dict[str, int]) -> float:
|
|
52 |
return round(total_bandwidth * overhead, 2)
|
53 |
|
54 |
|
55 |
-
|
56 |
final_answer = FinalAnswerTool()
|
57 |
#duck_duck_go_search = DuckDuckGoSearchTool()
|
58 |
|
|
|
24 |
"""
|
25 |
Calculate the recommended internet speed based on user inputs.
|
26 |
|
27 |
+
:param users: The total number of users requiring internet access.
|
28 |
+
:type users: int
|
29 |
+
:param usage: A dictionary with usage categories as keys. Expected keys are:
|
30 |
+
"browsing" - Number of users browsing the web.
|
31 |
+
"video_call" - Number of users on video calls.
|
32 |
+
"hd_streaming" - Number of users streaming in HD.
|
33 |
+
"4k_streaming" - Number of users streaming in 4K.
|
34 |
+
"gaming" - Number of users gaming online.
|
35 |
+
"remote_work" - Number of users working remotely.
|
36 |
+
:type usage: Dict[str, int]
|
37 |
+
:return: Recommended bandwidth in Mbps to ensure smooth performance.
|
38 |
+
:rtype: float
|
39 |
"""
|
40 |
usage_requirements = {
|
41 |
"browsing": 1, # Mbps per user
|
|
|
52 |
return round(total_bandwidth * overhead, 2)
|
53 |
|
54 |
|
|
|
55 |
final_answer = FinalAnswerTool()
|
56 |
#duck_duck_go_search = DuckDuckGoSearchTool()
|
57 |
|