Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -351,6 +351,7 @@ def make_api_request(url, params):
|
|
| 351 |
"""Generic function to make API GET requests and return JSON data."""
|
| 352 |
try:
|
| 353 |
print(url)
|
|
|
|
| 354 |
response = requests.get(url, params=params)
|
| 355 |
response.raise_for_status() # Raises an HTTPError if the response was an error
|
| 356 |
return response.json() # Return the parsed JSON data
|
|
|
|
| 351 |
"""Generic function to make API GET requests and return JSON data."""
|
| 352 |
try:
|
| 353 |
print(url)
|
| 354 |
+
print(params)
|
| 355 |
response = requests.get(url, params=params)
|
| 356 |
response.raise_for_status() # Raises an HTTPError if the response was an error
|
| 357 |
return response.json() # Return the parsed JSON data
|