Skip to content

Commit

Permalink
Do not use relative imports - they break nbdev_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jpc committed Mar 2, 2024
1 parent 478733d commit 920be3d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion nbs/1B. Voice activity detection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"import whisperx\n",
"\n",
"from whisperspeech.inference import get_compute_device\n",
"from . import utils"
"from whisperspeech import utils"
]
},
{
Expand Down
8 changes: 4 additions & 4 deletions nbs/7. Pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"#| exporti\n",
"from os.path import expanduser\n",
"import torch\n",
"from .t2s_up_wds_mlang_enclm import TSARTransformer\n",
"from .s2a_delar_mup_wds_mlang import SADelARTransformer\n",
"from .a2wav import Vocoder\n",
"from . import inference\n",
"from whisperspeech.t2s_up_wds_mlang_enclm import TSARTransformer\n",
"from whisperspeech.s2a_delar_mup_wds_mlang import SADelARTransformer\n",
"from whisperspeech.a2wav import Vocoder\n",
"from whisperspeech import inference\n",
"import traceback\n",
"from pathlib import Path"
]
Expand Down
8 changes: 4 additions & 4 deletions whisperspeech/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
# %% ../nbs/7. Pipeline.ipynb 1
from os.path import expanduser
import torch
from .t2s_up_wds_mlang_enclm import TSARTransformer
from .s2a_delar_mup_wds_mlang import SADelARTransformer
from .a2wav import Vocoder
from . import inference
from whisperspeech.t2s_up_wds_mlang_enclm import TSARTransformer
from whisperspeech.s2a_delar_mup_wds_mlang import SADelARTransformer
from whisperspeech.a2wav import Vocoder
from whisperspeech import inference
import traceback
from pathlib import Path

Expand Down
2 changes: 1 addition & 1 deletion whisperspeech/vad.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import whisperx

from whisperspeech.inference import get_compute_device
from . import utils
from whisperspeech import utils

# %% ../nbs/1B. Voice activity detection.ipynb 5
# some of the original file names have a dot in their name
Expand Down

0 comments on commit 920be3d

Please sign in to comment.