mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-08-16 15:40:23 +02:00
clean up deps, use env var for bucket
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user