diff --git a/lidya/core.py b/lidya/core.py index 7edabdc..4e47917 100644 --- a/lidya/core.py +++ b/lidya/core.py @@ -102,7 +102,7 @@ def listen_and_repeat(last_communication): ) print("[*] Generating audio... ") - if type(llm_result) == dict and "message" in llm_result.keys(): + if isinstance(llm_result, dict) and "message" in llm_result.keys(): tts.play_generate_audio(llm_result["message"]) else: playsound('./lidya/ressources/sounds/fail_blip.mp3')