Skip to content

Commit

Permalink
fix - AttributeError: 'str' object has no attribute 'removesuffix'
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Sep 5, 2024
1 parent 270ec4c commit 53d48bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chart/model-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ deployments:
thenlper/gte-base
- name: "retro-sadtalker"
image: "crgooeyprodwestus1.azurecr.io/gooey-gpu-retro:13"
image: "crgooeyprodwestus1.azurecr.io/gooey-gpu-retro:14"
autoscaling:
queueLength: 2
minReplicaCount: 3
Expand All @@ -299,7 +299,7 @@ deployments:
SadTalker_V0.0.2_512.safetensors
- name: "retro-wav2lip-gan"
image: "crgooeyprodwestus1.azurecr.io/gooey-gpu-retro:13"
image: "crgooeyprodwestus1.azurecr.io/gooey-gpu-retro:14"
autoscaling:
minReplicaCount: 2
maxReplicaCount: 10
Expand Down
2 changes: 1 addition & 1 deletion gooey_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
)

try:
gpu_limit_gib = float(os.environ["RESOURCE_LIMITS_GPU"].removesuffix("Gi"))
gpu_limit_gib = float(os.environ["RESOURCE_LIMITS_GPU"].replace("Gi", ""))
except (KeyError, ValueError):
print("RESOURCE_LIMITS_GPU environment variable not set to a valid value.")
else:
Expand Down

0 comments on commit 53d48bc

Please sign in to comment.