Spaces:
Sleeping
Sleeping
bertugmirasyedi
commited on
Commit
·
12bc706
1
Parent(s):
3efec51
Change google books item count to 10
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def search(query, similarity=False):
|
|
12 |
|
13 |
# Set the API endpoint and query parameters
|
14 |
url = "https://www.googleapis.com/books/v1/volumes"
|
15 |
-
params = {"q": str(query), "printType": "books", "maxResults":
|
16 |
|
17 |
# Send a GET request to the API with the specified parameters
|
18 |
response = requests.get(url, params=params)
|
|
|
12 |
|
13 |
# Set the API endpoint and query parameters
|
14 |
url = "https://www.googleapis.com/books/v1/volumes"
|
15 |
+
params = {"q": str(query), "printType": "books", "maxResults": 10}
|
16 |
|
17 |
# Send a GET request to the API with the specified parameters
|
18 |
response = requests.get(url, params=params)
|