Athspi commited on
Commit
cf9ed4e
·
verified ·
1 Parent(s): 659e457

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -147,7 +147,7 @@ def transcribe_audio(audio_file, language="Auto Detect", model_size="Base (Faste
147
  )
148
  # Fix for the `suppress_tokens` issue
149
  if hasattr(transcribe.model.config, "suppress_tokens"):
150
- transcribe.model.config.suppress_tokens = None # Disable suppress_tokens
151
  result = transcribe(processed_audio_path)
152
  transcription = result["text"]
153
  detected_language = language
 
147
  )
148
  # Fix for the `suppress_tokens` issue
149
  if hasattr(transcribe.model.config, "suppress_tokens"):
150
+ transcribe.model.config.suppress_tokens = [] # Set to an empty list
151
  result = transcribe(processed_audio_path)
152
  transcription = result["text"]
153
  detected_language = language