Skip to content

Commit

Permalink
clean up deps, use env var for bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
frillweeman committed Jan 4, 2025
1 parent 884ac11 commit e03cb9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions serverless/alpr_clusters/src/alpr_clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import time
import numpy as np
import requests
from sklearn.cluster import DBSCAN
from typing import Tuple
import re
from concurrent.futures import ThreadPoolExecutor
Expand Down Expand Up @@ -80,7 +79,7 @@ def lambda_handler(event, context):
print("Uploading data to 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
epoch = int(time.time())
Expand Down
1 change: 0 additions & 1 deletion serverless/alpr_clusters/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
boto3
requests
scikit-learn
numpy

0 comments on commit e03cb9d

Please sign in to comment.