Spaces:
Running
Running
Update app/services/transcription.py
Browse files
app/services/transcription.py
CHANGED
|
@@ -223,8 +223,8 @@ class TranscriptionService:
|
|
| 223 |
# Stability / filtering
|
| 224 |
condition_on_previous_text: bool = True,
|
| 225 |
no_speech_threshold: float = 0.70,
|
| 226 |
-
log_prob_threshold: float = -
|
| 227 |
-
compression_ratio_threshold: float =
|
| 228 |
word_timestamps=True
|
| 229 |
|
| 230 |
) -> Dict:
|
|
@@ -330,10 +330,10 @@ class TranscriptionService:
|
|
| 330 |
initial_prompt: Optional[str] = None,
|
| 331 |
prefix_text: Optional[str] = None,
|
| 332 |
condition_on_previous_text: bool = True,
|
| 333 |
-
no_speech_threshold: float = 0.
|
| 334 |
-
log_prob_threshold: float = -
|
| 335 |
# text repetitive / nonsense
|
| 336 |
-
compression_ratio_threshold: float =
|
| 337 |
word_timestamps=True
|
| 338 |
|
| 339 |
) -> Dict:
|
|
|
|
| 223 |
# Stability / filtering
|
| 224 |
condition_on_previous_text: bool = True,
|
| 225 |
no_speech_threshold: float = 0.70,
|
| 226 |
+
log_prob_threshold: float = -1.0,
|
| 227 |
+
compression_ratio_threshold: float = 2.4,
|
| 228 |
word_timestamps=True
|
| 229 |
|
| 230 |
) -> Dict:
|
|
|
|
| 330 |
initial_prompt: Optional[str] = None,
|
| 331 |
prefix_text: Optional[str] = None,
|
| 332 |
condition_on_previous_text: bool = True,
|
| 333 |
+
no_speech_threshold: float = 0.7,
|
| 334 |
+
log_prob_threshold: float = -1.0,
|
| 335 |
# text repetitive / nonsense
|
| 336 |
+
compression_ratio_threshold: float = 2.4,
|
| 337 |
word_timestamps=True
|
| 338 |
|
| 339 |
) -> Dict:
|