Spaces:
Build error
Build error
Update app.py
Browse files350 unmodified lines351352353354355356350 unmodified lines"""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 data350 unmodified lines351352353354355356357350 unmodified lines"""Generic function to make API GET requests and return JSON data."""try:print(url)print(params)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