Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,20 +36,19 @@ ai_regulation_tool = AIRegulationModel()
|
|
| 36 |
|
| 37 |
@tool
|
| 38 |
def ai_regulation_query_tool(query: str) -> str:
|
| 39 |
-
"""
|
| 40 |
-
|
| 41 |
-
This function sends a query related to AI regulations to the AI model and
|
| 42 |
-
returns a relevant response.
|
| 43 |
|
| 44 |
Args:
|
| 45 |
-
query (str):
|
| 46 |
|
| 47 |
Returns:
|
| 48 |
-
str: A response generated by the AI
|
| 49 |
"""
|
| 50 |
return ai_regulation_tool.get_regulation_info(query)
|
| 51 |
|
| 52 |
|
|
|
|
| 53 |
@tool
|
| 54 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 55 |
"""Fetches the current local time in a specified timezone.
|
|
|
|
| 36 |
|
| 37 |
@tool
|
| 38 |
def ai_regulation_query_tool(query: str) -> str:
|
| 39 |
+
"""
|
| 40 |
+
Queries an AI model for information on AI regulation.
|
|
|
|
|
|
|
| 41 |
|
| 42 |
Args:
|
| 43 |
+
query (str): The user's question regarding AI regulations.
|
| 44 |
|
| 45 |
Returns:
|
| 46 |
+
str: A response generated by the AI regulation model.
|
| 47 |
"""
|
| 48 |
return ai_regulation_tool.get_regulation_info(query)
|
| 49 |
|
| 50 |
|
| 51 |
+
|
| 52 |
@tool
|
| 53 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 54 |
"""Fetches the current local time in a specified timezone.
|