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