Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,14 +38,18 @@ ai_regulation_tool = AIRegulationModel()
|
|
| 38 |
def ai_regulation_query_tool(query: str) -> str:
|
| 39 |
"""Queries an AI model for information on AI regulation.
|
| 40 |
|
|
|
|
|
|
|
|
|
|
| 41 |
Args:
|
| 42 |
-
query (str):
|
| 43 |
|
| 44 |
Returns:
|
| 45 |
-
str: A
|
| 46 |
"""
|
| 47 |
return ai_regulation_tool.get_regulation_info(query)
|
| 48 |
|
|
|
|
| 49 |
@tool
|
| 50 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 51 |
"""Fetches the current local time in a specified timezone.
|
|
|
|
| 38 |
def ai_regulation_query_tool(query: str) -> str:
|
| 39 |
"""Queries an AI model for information on AI regulation.
|
| 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): A string containing the question or topic related to AI regulations.
|
| 46 |
|
| 47 |
Returns:
|
| 48 |
+
str: A response generated by the AI model, providing insights on AI regulations.
|
| 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.
|