fix switch of music skill
@@ -359,6 +359,7 @@ def get_genre(vars):
topic_skill_entities_info = wp_output.get("topic_skill_entities_info", {})
for entities_info in [all_entities_info, topic_skill_entities_info]:
for entity in entities_info:
+ if entities_info[entity]["conf"] > 0.7 and entities_info[entity]["token_conf"] > 0.9:
logger.info(f"Entity: {entities_info[entity]}")
if "genre" in entities_info[entity]:
for genre in genres:
