Skip to content

Commit

Permalink
Update process_images.py
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmIriarte authored Jul 16, 2024
1 parent 7a5c6bb commit 7cae0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/process_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
def upload_image(image_path):
url = "https://api.cloudflare.com/client/v4/accounts/df2eef4c5a85afb0880466202079da1b/images/v1"
headers = {
"Authorization": "Bearer CLOUDFLARE_API_TOKEN"
"Authorization": "Bearer {os.environ['CLOUDFLARE_API_TOKEN']}"
}
files = {
'file': open(image_path, 'rb')
Expand Down

0 comments on commit 7cae0c4

Please sign in to comment.