JDhruv14 commited on
Commit
1ef8657
·
verified ·
1 Parent(s): c0601ef

Update app.py

Browse files

Fixed the error in custom tool

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,8 +20,8 @@ def my_custom_tool(arg1:str, arg2:int)-> str:
20
  name = arg1
21
  day = arg2
22
  return f"Happy Birthday to my dear friend {name}, I wish on this day that is {day} is always on your mind :) "
23
- except Exception as e:
24
- return f"Error generating text"
25
  @tool
26
  def get_current_time_in_timezone(timezone: str) -> str:
27
  """A tool that fetches the current local time in a specified timezone.
 
20
  name = arg1
21
  day = arg2
22
  return f"Happy Birthday to my dear friend {name}, I wish on this day that is {day} is always on your mind :) "
23
+ except Exception as e:
24
+ return f"Error generating text :{str(e)}"
25
  @tool
26
  def get_current_time_in_timezone(timezone: str) -> str:
27
  """A tool that fetches the current local time in a specified timezone.