Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:
|