juanxo90 commited on
Commit
c6935b1
·
verified ·
1 Parent(s): 2bfcd34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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 gaussian_distribution_array(mu: float, sigma:float):
39
- """A tool calculate a numpy array of a normal distribution usong the median and std deviation
40
  Args:
41
- mu (float): median
42
- sigma (float): std deviation
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
- gaussian_distribution_array,
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)