VP21 commited on
Commit
7784b07
·
verified ·
1 Parent(s): d6d38e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -13
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
- Args:
28
- users (int): The total number of users requiring internet access.
29
- usage (Dict[str, int]): 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
-
37
- Returns:
38
- float: Recommended bandwidth in Mbps to ensure smooth performance.
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