Skip to content

Commit 3089e34

Browse files
committed
chore: merge main & ruff format
1 parent 46825a9 commit 3089e34

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

api/services/audio_service.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ def transcript_asr(
4949
else:
5050
app_model_config: AppModelConfig = app_model.app_model_config
5151

52-
if not hasattr(app_model_config, "speech_to_text_dict") or not app_model_config.speech_to_text_dict.get(
53-
"enabled"
54-
):
52+
if (not hasattr(app_model_config, "speech_to_text_dict") or
53+
not app_model_config.speech_to_text_dict.get("enabled")):
5554
raise ValueError("Speech to text is not enabled")
5655

5756
speech_to_text_dict = app_model_config.speech_to_text_dict

0 commit comments

Comments
 (0)