Spaces:
Running
Running
Fix DiarizationService constructor compatibility
#2
by basyx - opened
app/services/diarization_service.py
CHANGED
|
@@ -15,7 +15,14 @@ from app.models.transcript import DiarizationSpan
|
|
| 15 |
|
| 16 |
|
| 17 |
class DiarizationService:
|
| 18 |
-
"""Optional authenticated HTTP adapter for speaker diarization.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
@property
|
| 21 |
def url(self) -> str:
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
class DiarizationService:
|
| 18 |
+
"""Optional authenticated HTTP adapter for speaker diarization.
|
| 19 |
+
|
| 20 |
+
Accept Settings for dependency-injection compatibility. Runtime options are
|
| 21 |
+
currently read from environment variables, matching the deployment contract.
|
| 22 |
+
"""
|
| 23 |
+
|
| 24 |
+
def __init__(self, settings: Any = None) -> None:
|
| 25 |
+
self.settings = settings
|
| 26 |
|
| 27 |
@property
|
| 28 |
def url(self) -> str:
|