Spaces:
Sleeping
Sleeping
Update app.py
Browse files23 unmodified lines2425262728293027282930313233343536373839404110 unmodified lines5253545556575823 unmodified lines """ Calculate the recommended internet speed based on user inputs.
:param users: The total number of users requiring internet access. :param usage: A dictionary with usage categories as keys (one of "browsing", "video_call", "hd_streaming", "4k_streaming", "gaming", "remote_work") and the number of users per category as values. :return: Recommended bandwidth in Mbps to ensure smooth performance. Args: users (int): The total number of users requiring internet access. usage (Dict[str, int]): A dictionary with usage categories as keys. Expected keys are: - "browsing": Number of users browsing the web. - "video_call": Number of users on video calls. - "hd_streaming": Number of users streaming in HD. - "4k_streaming": Number of users streaming in 4K. - "gaming": Number of users gaming online. - "remote_work": Number of users working remotely.
Returns: float: Recommended bandwidth in Mbps to ensure smooth performance. """ usage_requirements = { "browsing": 1, # Mbps per user10 unmodified lines return round(total_bandwidth * overhead, 2)
final_answer = FinalAnswerTool()#duck_duck_go_search = DuckDuckGoSearchTool()
app.py+13-4