clean up deps, use env var for bucket

This commit is contained in:
Will Freeman
2025-01-04 13:53:20 -07:00
parent 884ac11200
commit e03cb9da7c
2 changed files with 1 additions and 3 deletions
@@ -7,7 +7,6 @@ import os
import time import time
import numpy as np import numpy as np
import requests import requests
from sklearn.cluster import DBSCAN
from typing import Tuple from typing import Tuple
import re import re
from concurrent.futures import ThreadPoolExecutor from concurrent.futures import ThreadPoolExecutor
@@ -80,7 +79,7 @@ def lambda_handler(event, context):
print("Uploading data to S3...") print("Uploading data to S3...")
s3 = boto3.client("s3") s3 = boto3.client("s3")
bucket_new = "cdn.deflock.me" bucket_new = os.getenv("OUTPUT_BUCKET", "cdn.deflock.me")
# TODO: handle outdated index files when their referenced files are deleted # TODO: handle outdated index files when their referenced files are deleted
epoch = int(time.time()) epoch = int(time.time())
@@ -1,4 +1,3 @@
boto3 boto3
requests requests
scikit-learn
numpy numpy