Skip to content

Commit

Permalink
העברת יבוא ספרייה לראש הקוד
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLOCAL committed Dec 28, 2024
1 parent ef813d7 commit d7f6492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/singles_sorter_v5.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from jibrish_to_hebrew import fix_jibrish, check_jibrish
from check_name import check_exact_name
import shutil
from collections import Counter

# פונקציה לבדיקת קיום קבצי מודל AI
def check_model_files():
Expand Down Expand Up @@ -371,7 +372,6 @@ def analyze_album(self, folder_path):
return False, False, None, None

# 5. חישוב "רוב" שם האלבום
from collections import Counter
c = Counter(album_names) # ספירת כמה פעמים מופיע כל שם אלבום
most_common_album, most_common_count = c.most_common(1)[0] # (album_val, count)
majority_album_ratio = most_common_count / len(audio_files)
Expand Down

0 comments on commit d7f6492

Please sign in to comment.