Spaces:
Sleeping
Sleeping
bug fix for book search tool
Browse files- tools/book_search.py +2 -2
tools/book_search.py
CHANGED
@@ -33,7 +33,7 @@ class NYTBestSellerTool(Tool):
|
|
33 |
'genre':
|
34 |
{'type': 'string', 'description': 'The genre to search'},
|
35 |
'limit':
|
36 |
-
{'type': '
|
37 |
}
|
38 |
output_type = "string"
|
39 |
|
@@ -62,7 +62,7 @@ class NYTBestSellerTool(Tool):
|
|
62 |
"young-adult-paperback-monthly"
|
63 |
]
|
64 |
|
65 |
-
def forward(self, genre: str, limit:
|
66 |
if isinstance(limit,str):
|
67 |
limit = int(limit)
|
68 |
|
|
|
33 |
'genre':
|
34 |
{'type': 'string', 'description': 'The genre to search'},
|
35 |
'limit':
|
36 |
+
{'type': 'string', 'description': 'The number of results to include', 'nullable': True}
|
37 |
}
|
38 |
output_type = "string"
|
39 |
|
|
|
62 |
"young-adult-paperback-monthly"
|
63 |
]
|
64 |
|
65 |
+
def forward(self, genre: str, limit: str = "5") -> str:
|
66 |
if isinstance(limit,str):
|
67 |
limit = int(limit)
|
68 |
|