BobbyCell commited on
Commit
c96941b
·
verified ·
1 Parent(s): e28f85f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -24,6 +24,8 @@ def biological_term_category(biological_term: str)-> str: #it's import to specif
24
  return search_results
25
  else:
26
  return f"I couldn't find the category for the {biological_term}."
 
 
27
 
28
  @tool
29
  def get_current_time_in_timezone(timezone: str) -> str:
 
24
  return search_results
25
  else:
26
  return f"I couldn't find the category for the {biological_term}."
27
+ except Exception as e:
28
+ return f"Error fetching category for the term {biological_term}: {str(e)}"
29
 
30
  @tool
31
  def get_current_time_in_timezone(timezone: str) -> str: