Spaces:
Build error
Build error
Update app.py
Browse files349 unmodified lines350351352353354355356349 unmodified linesdef make_api_request(url, params):"""Generic function to make API GET requests and return JSON data."""try:response = requests.get(url, params=params)response.raise_for_status() # Raises an HTTPError if the response was an errorreturn response.json() # Return the parsed JSON data349 unmodified lines350351352353354355356349 unmodified linesdef make_api_request(url, params):"""Generic function to make API GET requests and return JSON data."""try:print(url)response = requests.get(url, params=params)response.raise_for_status() # Raises an HTTPError if the response was an errorreturn response.json() # Return the parsed JSON data
app.py+1-1