Skip to content

Commit

Permalink
another small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bebra777228 committed Nov 9, 2024
1 parent 80aa1eb commit 7e70f5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/i18n/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, language=None):

self.language = lang_prefix

if override == False:
if not override:
language = language or getdefaultlocale()[0]
lang_prefix = language[:2] if language is not None else "en"
available_languages = self._get_available_languages()
Expand Down
2 changes: 1 addition & 1 deletion rvc/lib/algorithm/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def forward(self, x: torch.Tensor, g: Optional[torch.Tensor] = None):
x = self.ups[i](x)
xs = None
for j in range(self.num_kernels):
if xs == None:
if xs is None:
xs = self.resblocks[i * self.num_kernels + j](x)
else:
xs += self.resblocks[i * self.num_kernels + j](x)
Expand Down

0 comments on commit 7e70f5e

Please sign in to comment.