Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
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
|