h2oaimichalmarszalek commited on
Commit
d04287a
·
verified ·
1 Parent(s): 5946c79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ from Gradio_UI import GradioUI
12
  def factorial(n :int ) -> int:
13
  """A tool for calculating the factorial of n.
14
  Args:
15
- n: number to calculate factorial
16
  """
17
  return n*factorial(n-1)
18
 
@@ -67,7 +67,7 @@ with open("prompts.yaml", 'r') as stream:
67
 
68
  agent = CodeAgent(
69
  model=model,
70
- tools=[final_answer, factorial], ## add your tools here (don't remove final answer)
71
  max_steps=6,
72
  verbosity_level=1,
73
  grammar=None,
 
12
  def factorial(n :int ) -> int:
13
  """A tool for calculating the factorial of n.
14
  Args:
15
+ n: an int number to calculate factorial
16
  """
17
  return n*factorial(n-1)
18
 
 
67
 
68
  agent = CodeAgent(
69
  model=model,
70
+ tools=[final_answer], ## add your tools here (don't remove final answer)
71
  max_steps=6,
72
  verbosity_level=1,
73
  grammar=None,