Skip to content

Commit

Permalink
Merge pull request #8 from jgoralcz/master
Browse files Browse the repository at this point in the history
change k8s node
  • Loading branch information
jgoralcz authored Sep 4, 2023
2 parents 93c4316 + 6ce86bb commit 2a4b45c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/api/handlers/imagehash.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@

def imagehashed(url: str):
response = requests.get(url)
print("url", url)
buffer = response.content

im = Image.open(BytesIO(buffer))
avg_hash = imagehash.average_hash(im)

return { "hash": str(avg_hash)}
return { "hash": str(avg_hash) }
3 changes: 0 additions & 3 deletions k8s/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ spec:
labels:
app: ${SERVICE_NAME}
spec:
nodeSelector:
location: na
type: high-cpu
containers:
- name: ${SERVICE_NAME}
image: ${IMAGE_LOCATION}
Expand Down

0 comments on commit 2a4b45c

Please sign in to comment.