Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,16 +35,11 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
35 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
36 |
|
37 |
@tool
|
38 |
-
def normal_distribution_array(mu:
|
39 |
-
"""A tool calculate a numpy array of a normal distribution
|
40 |
Args:
|
41 |
mu (float): median of the normal distriburion.
|
42 |
sigma (float): standard deviation of the normal distribution.
|
43 |
-
Returns:
|
44 |
-
numpy.ndarray: A NumPy array with with 1000 ramdom samples.
|
45 |
-
|
46 |
-
Raises:
|
47 |
-
ImportError: IF `numpy` is not installed, it raises an exception.
|
48 |
"""
|
49 |
try:
|
50 |
from numpy.random import normal
|
|
|
35 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
36 |
|
37 |
@tool
|
38 |
+
def normal_distribution_array(mu:float, sigma:float):
|
39 |
+
"""A tool calculate a numpy array of a normal distribution using the mu and sigma.
|
40 |
Args:
|
41 |
mu (float): median of the normal distriburion.
|
42 |
sigma (float): standard deviation of the normal distribution.
|
|
|
|
|
|
|
|
|
|
|
43 |
"""
|
44 |
try:
|
45 |
from numpy.random import normal
|