Damian96 commited on
Commit
eaa3acd
·
verified ·
1 Parent(s): fe495bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def count_letters_in_name(name: str)-> int: #it's import to specify the return t
15
  Args:
16
  name: A string representing a valid name (e.g., 'Geoffrey Hinton')
17
  """
18
- return len(name.replace(' ', '')) if type(name) == 'str' else 0
19
 
20
  @tool
21
  def get_current_time_in_timezone(timezone: str) -> str:
 
15
  Args:
16
  name: A string representing a valid name (e.g., 'Geoffrey Hinton')
17
  """
18
+ return len(name.replace(' ', '')) if isinstance(name, str) else 0
19
 
20
  @tool
21
  def get_current_time_in_timezone(timezone: str) -> str: