Fabrice-TIERCELIN commited on
Commit
cb63324
·
verified ·
1 Parent(s): 834643f

Upload __init__.py

Browse files
Files changed (1) hide show
  1. omnivoice/__init__.py +28 -0
omnivoice/__init__.py ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import warnings
2
+ from importlib.metadata import PackageNotFoundError, version
3
+
4
+ warnings.filterwarnings("ignore", module="torchaudio")
5
+ warnings.filterwarnings(
6
+ "ignore",
7
+ category=SyntaxWarning,
8
+ message="invalid escape sequence",
9
+ module="pydub.utils",
10
+ )
11
+ warnings.filterwarnings(
12
+ "ignore",
13
+ category=FutureWarning,
14
+ module="torch.distributed.algorithms.ddp_comm_hooks",
15
+ )
16
+
17
+ try:
18
+ __version__ = version("omnivoice")
19
+ except PackageNotFoundError:
20
+ __version__ = "0.0.0"
21
+
22
+ from omnivoice.models.omnivoice import (
23
+ OmniVoice,
24
+ OmniVoiceConfig,
25
+ OmniVoiceGenerationConfig,
26
+ )
27
+
28
+ __all__ = ["OmniVoice", "OmniVoiceConfig", "OmniVoiceGenerationConfig"]