Skip to content

Commit

Permalink
Adding pexels secret
Browse files Browse the repository at this point in the history
  • Loading branch information
soumensardar committed May 20, 2023
1 parent 7e4d33c commit dadaa62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.ipynb_checkpoints/
/client_secrets.json
/output/*
/.idea
/.idea
/pexels_secret.txt
5 changes: 4 additions & 1 deletion chatgpt/image_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import os

# Set up the Pexels API key
API_KEY = "oOIT1S8sKtQqSf9pJxC1u5xhp1YlbguB3HqQpunjANvY0WcFq02irYH2"
with open("pexels_secret.txt", "r") as fp:
API_KEY = fp.readlines()[0].strip()

assert API_KEY, 'API_KEY is not available'


def image_get_pexels(search_query_, no_images, output_dir):
Expand Down

0 comments on commit dadaa62

Please sign in to comment.