whlzy commited on
Commit
1104805
·
verified ·
1 Parent(s): cebda22

Upload handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -35,7 +35,7 @@ class EndpointHandler():
35
  SECRET_ACCESS_KEY = 'db2658e2429950bb05e15afb6c53c8b7fd23ab9e1bf79cd42604c89f276068e4'
36
  ENDPOINT_URL = f'https://{ACCOUNT_ID}.r2.cloudflarestorage.com'
37
  bucket_postfix_path = f"{datetime.datetime.now().strftime('%Y%m%d_%H%M%S')}.jpg"
38
- image_url = f"https://assets.popwear.ai/{bucket_prefix_path}/{bucket_postfix_path}"
39
  s3 = boto3.client(
40
  's3',
41
  endpoint_url=ENDPOINT_URL,
 
35
  SECRET_ACCESS_KEY = 'db2658e2429950bb05e15afb6c53c8b7fd23ab9e1bf79cd42604c89f276068e4'
36
  ENDPOINT_URL = f'https://{ACCOUNT_ID}.r2.cloudflarestorage.com'
37
  bucket_postfix_path = f"{datetime.datetime.now().strftime('%Y%m%d_%H%M%S')}.jpg"
38
+ image_url = f"https://assets.popwear.ai/{BUCKET_PREFIX_PATH}/{bucket_postfix_path}"
39
  s3 = boto3.client(
40
  's3',
41
  endpoint_url=ENDPOINT_URL,