Spaces:
Sleeping
Sleeping
fix: add docstring to Wav2Vec2DetectorService constructor for clarity
Browse files
app/services/wav2vec2_detector.py
CHANGED
|
@@ -48,6 +48,7 @@ class Wav2Vec2DetectorService:
|
|
| 48 |
"""
|
| 49 |
|
| 50 |
def __init__(self, model_path: Optional[Path] = None) -> None:
|
|
|
|
| 51 |
self._model = None
|
| 52 |
self._device = None
|
| 53 |
self._initialized = False
|
|
|
|
| 48 |
"""
|
| 49 |
|
| 50 |
def __init__(self, model_path: Optional[Path] = None) -> None:
|
| 51 |
+
"""Initialize wav2vec2 detector with optional model path."""
|
| 52 |
self._model = None
|
| 53 |
self._device = None
|
| 54 |
self._initialized = False
|