Skip to content

Commit

Permalink
Merge pull request #175 from datalab-mi/develop
Browse files Browse the repository at this point in the history
Update thresholds for new classification model
  • Loading branch information
leihuayi committed Sep 5, 2023
2 parents a9d0bca + c64fd6b commit 6c792bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SHELL := /bin/bash
DOCKER := $(shell type -p docker)
DC := $(shell type -p docker-compose)
TAG := 3.1
TAG := 3.2
APP_NAME := basegun
REG := ghcr.io
ORG := datalab-mi
Expand Down
4 changes: 2 additions & 2 deletions backend/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,9 @@ async def imageupload(
extras_logging["bg_label"] = label
extras_logging["bg_confidence"] = confidence
extras_logging["bg_model_time"] = round(time.time()-start, 2)
if confidence < 41:
if confidence < 46:
extras_logging["bg_confidence_level"] = "low"
elif confidence < 65:
elif confidence < 76:
extras_logging["bg_confidence_level"] = "medium"
else:
extras_logging["bg_confidence_level"] = "high"
Expand Down
6 changes: 3 additions & 3 deletions infra/kube/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ingress:
#traefik.ingress.kubernetes.io/router.tls: "true"
#traefik.ingress.kubernetes.io/router.tls.certresolver: letsencrypt
hosts:
- host: basegun.fr
- host: preprod.basegun.fr
paths:
- path: /
pathType: Prefix
Expand All @@ -34,7 +34,7 @@ backend:
repository: ghcr.io/datalab-mi/basegun/basegun-backend
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "3.1"
tag: "3.2"
imagePullSecrets: []
podAnnotations: {}
podSecurityContext: {}
Expand Down Expand Up @@ -96,7 +96,7 @@ frontend:
repository: ghcr.io/datalab-mi/basegun/basegun-frontend
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "3.1"
tag: "3.2"
imagePullSecrets: []
podAnnotations: {}
podSecurityContext: {}
Expand Down

0 comments on commit 6c792bf

Please sign in to comment.