Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,13 +35,13 @@ 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
|
39 |
-
"""A tool calculate a numpy array of a normal distribution usong the median and
|
40 |
Args:
|
41 |
-
mu (float): median
|
42 |
-
sigma (float):
|
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.
|
@@ -77,7 +77,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
77 |
agent = CodeAgent(
|
78 |
model=model,
|
79 |
tools=[
|
80 |
-
|
81 |
duck_search,
|
82 |
final_answer
|
83 |
], ## add your tools here (don't remove final answer)
|
|
|
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 usong the median and standard deviation.
|
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.
|
|
|
77 |
agent = CodeAgent(
|
78 |
model=model,
|
79 |
tools=[
|
80 |
+
normal_distribution_array,
|
81 |
duck_search,
|
82 |
final_answer
|
83 |
], ## add your tools here (don't remove final answer)
|