RafaelAgreda commited on
Commit
fdc2303
·
verified ·
1 Parent(s): f84e6bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,7 +27,7 @@ books_service = build("books", "v1", credentials=credentials)
27
 
28
  # I want to try connect to a google API to get some recommendation of audiobooks!
29
  @tool
30
- def search_audiobooks(topic: str, limit: int = 3) -> List[Dict[str, Any]]:
31
  """
32
  Search Google Play Books for audiobooks by topic.
33
 
@@ -36,7 +36,7 @@ def search_audiobooks(topic: str, limit: int = 3) -> List[Dict[str, Any]]:
36
  limit (int): Maximum number of results to return (default: 3).
37
 
38
  Returns:
39
- List[Dict[str, Any]]: List of audiobook metadata dictionaries.
40
  """
41
  try:
42
  request = books_service.volumes().list(
 
27
 
28
  # I want to try connect to a google API to get some recommendation of audiobooks!
29
  @tool
30
+ def search_audiobooks(topic: str, limit: int = 3) -> list[dict[str, any]]:
31
  """
32
  Search Google Play Books for audiobooks by topic.
33
 
 
36
  limit (int): Maximum number of results to return (default: 3).
37
 
38
  Returns:
39
+ list[dict[str, any]]: List of audiobook metadata dictionaries.
40
  """
41
  try:
42
  request = books_service.volumes().list(