Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cocktailpeanut committed Feb 16, 2025
1 parent 467de6b commit de91079
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gradio_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,4 +388,5 @@ def build_interface():
if __name__ == "__main__":
demo = build_interface()
share = getenv("GRADIO_SHARE", "False").lower() in ("true", "1", "t")
demo.launch(server_name="0.0.0.0", server_port=7860, share=share)
server_name = getenv("ZONOS_HOST", "0.0.0.0")
demo.launch(server_name=server_name, share=share)
2 changes: 1 addition & 1 deletion zonos/conditioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def forward(self, inputs: tuple[Any, ...] | None) -> torch.Tensor:
from phonemizer.backend import EspeakBackend
from sudachipy import Dictionary, SplitMode

if sys.platform == "darwin":
if sys.platform == "darwin" and "PHONEMIZER_ESPEAK_LIBRARY" not in os.environ:
os.environ["PHONEMIZER_ESPEAK_LIBRARY"] = "/opt/homebrew/lib/libespeak-ng.dylib"

# --- Number normalization code from https://github.com/daniilrobnikov/vits2/blob/main/text/normalize_numbers.py ---
Expand Down

0 comments on commit de91079

Please sign in to comment.