Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -383,7 +383,7 @@ def get_pexels_image(query):
|
|
383 |
headers = {"Authorization": PEXELS_API_KEY}
|
384 |
try:
|
385 |
response = requests.get(url, headers=headers)
|
386 |
-
logger.
|
387 |
if response.status_code == 200:
|
388 |
data = response.json()
|
389 |
if data["total_results"] > 0:
|
|
|
383 |
headers = {"Authorization": PEXELS_API_KEY}
|
384 |
try:
|
385 |
response = requests.get(url, headers=headers)
|
386 |
+
logger.info(f"PEXELS API RESPONSE: {response.json()}")
|
387 |
if response.status_code == 200:
|
388 |
data = response.json()
|
389 |
if data["total_results"] > 0:
|