Skip to content

Commit

Permalink
fix: remove imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sorgfresser committed Oct 30, 2023
1 parent 068a7db commit 679dee4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/diart/models.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
from abc import ABC, abstractmethod
from typing import Optional, Text, Union, Callable, Mapping, TYPE_CHECKING
from typing import Optional, Text, Union, Callable, TYPE_CHECKING

import torch
import torch.nn as nn
from requests import HTTPError

try:
import pyannote.audio.pipelines.utils as pyannote_loader
from pyannote.audio import Inference, Model
from pyannote.audio.pipelines.speaker_verification import (
WeSpeakerPretrainedSpeakerEmbedding,
PretrainedSpeakerEmbedding,
)

Expand All @@ -18,8 +16,9 @@
_has_pyannote = False

if TYPE_CHECKING:
from pyannote.audio import Model
from pyannote.audio.pipelines.speaker_verification import (
WeSpeakerPretrainedSpeakerEmbedding,
PretrainedSpeakerEmbedding,
)


Expand Down

0 comments on commit 679dee4

Please sign in to comment.