Skip to content

Commit

Permalink
fix:(oldVersion210) Load on demand Emotion model
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardust-minus authored Dec 13, 2023
1 parent 710d5d6 commit e220e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oldVersion/V210/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import commons
from .text import cleaned_text_to_sequence, get_bert
from .text.cleaner import clean_text
from .emo_gen import get_emo


def get_text(text, language_str, hps, device):
Expand Down Expand Up @@ -50,6 +49,7 @@ def get_text(text, language_str, hps, device):


def get_emo_(reference_audio, emotion):
from .emo_gen import get_emo
emo = (
torch.from_numpy(get_emo(reference_audio))
if reference_audio
Expand Down

0 comments on commit e220e63

Please sign in to comment.