Skip to content

Commit 80990b2

Browse files
committed
fix import errors
1 parent 938d372 commit 80990b2

File tree

6 files changed

+194
-10
lines changed

6 files changed

+194
-10
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,6 @@ dependencies = [
4343
"Faster_Whisper",
4444
"funasr==1.0.27",
4545
"torchaudio==2.1.1",
46+
"pandas",
47+
"tensorboard",
4648
]

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,4 @@ g2p-en~=2.1.0
5555
pandas~=2.2.3
5656
torchmetrics~=1.6.1
5757
regex~=2024.11.6
58+
tensorboard

src/easevoice/module/data_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from . import commons
99
from .mel_processing import spectrogram_torch
10-
from text import cleaned_text_to_sequence
10+
from src.easevoice.text import cleaned_text_to_sequence
1111
import torch.nn.functional as F
1212
from ...utils.audio import load_audio
1313
version = os.environ.get('version', None)

tests/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
#!/usr/bin/env python
22
# -*- encoding=utf8 -*-
3+
import os
4+
import sys
35

6+
7+
def append_src_to_path():
8+
path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
9+
print(f"path for src: {path}")
10+
sys.path.append(path)

tests/train_test.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
#!/usr/bin/env python
22
# -*- encoding=utf8 -*-
33

4-
import unittest
5-
6-
from src.service.train import TrainGPTService
7-
from src.train.gpt import GPTTrainParams
84
from src.utils.response import ResponseStatus
5+
from src.train.gpt import GPTTrainParams
6+
from src.service.train import TrainGPTService
7+
import unittest
98

109

1110
class TestTrain(unittest.TestCase):

0 commit comments

Comments
 (0)