Dave67350 commited on
Commit
7278fcb
·
verified ·
1 Parent(s): 1887111

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
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): The input question related to AI regulations.
43
 
44
  Returns:
45
- str: A relevant response from the AI regulation model.
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.