Jelajahi Sumber

Update response_type_detector: change random rate

StrayWarrior 6 hari lalu
induk
melakukan
509d803ad0
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      response_type_detector.py

+ 1 - 1
response_type_detector.py

@@ -61,7 +61,7 @@ class ResponseTypeDetector:
             suitable_for_voice = self.if_message_suitable_for_voice(next_message_content)
             logger.debug(f"voice suitable[{suitable_for_voice}], message: {next_message_content}")
             if suitable_for_voice:
-                if random.random() < 0.2:
+                if random.random() < 0.6:
                     logger.info(f"enable voice response randomly for message: {next_message_content}")
                     return MessageType.VOICE
         return MessageType.TEXT