There was an error while loading. Please reload this page.
1 parent 375aea4 commit 6328175Copy full SHA for 6328175
notebooklm_detector.py
@@ -35,7 +35,8 @@ def load_dataset(dataset_path):
35
for file in files:
36
if file.endswith('.wav') or file.endswith('.mp3') or file.endswith('.mp4'):
37
file_path = os.path.join(root, file)
38
- label = 'ai' if 'ai' in file_path.lower() else 'human'
+ last_folder = os.path.basename(os.path.dirname(file_path))
39
+ label = 'ai' if 'ai' in last_folder.lower() else 'human'
40
print(f'file: {file} / file_path: {file_path} => {label}')
41
feature = extract_features(file_path)
42
if feature is not None:
0 commit comments