vyluong commited on
Commit
afe9ce6
·
verified ·
1 Parent(s): 18541e0

Update app/services/transcription.py

Browse files
Files changed (1) hide show
  1. app/services/transcription.py +5 -5
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 = -0.5,
227
- compression_ratio_threshold: float = 1.8,
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.60,
334
- log_prob_threshold: float = -0.5,
335
  # text repetitive / nonsense
336
- compression_ratio_threshold: float = 1.8,
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: