personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

formatting

+4 -12
+1 -3
apps/speakers/routes.py
··· 518 518 519 519 # Load all journal entities for matching 520 520 journal_entities = load_all_journal_entities() 521 - entities_list = [ 522 - e for e in journal_entities.values() if not e.get("blocked") 523 - ] 521 + entities_list = [e for e in journal_entities.values() if not e.get("blocked")] 524 522 525 523 # Match each speaker name to an entity 526 524 matched = []
+3 -9
apps/speakers/tests/test_routes.py
··· 272 272 273 273 emb = np.array([1.0, 0.0, 0.0] + [0.0] * 253, dtype=np.float32) 274 274 275 - path = _save_voiceprint( 276 - "john_doe", emb, "20240101", "143022_300", "mic_audio", 5 277 - ) 275 + path = _save_voiceprint("john_doe", emb, "20240101", "143022_300", "mic_audio", 5) 278 276 279 277 assert path.exists() 280 278 assert path.name == "voiceprints.npz" ··· 311 309 emb2 = np.array([0.0, 1.0, 0.0] + [0.0] * 253, dtype=np.float32) 312 310 313 311 # Save first voiceprint 314 - path = _save_voiceprint( 315 - "john_doe", emb1, "20240101", "143022_300", "mic_audio", 5 316 - ) 312 + path = _save_voiceprint("john_doe", emb1, "20240101", "143022_300", "mic_audio", 5) 317 313 318 314 # Save second voiceprint 319 - path2 = _save_voiceprint( 320 - "john_doe", emb2, "20240102", "150000_300", "audio", 3 321 - ) 315 + path2 = _save_voiceprint("john_doe", emb2, "20240102", "150000_300", "audio", 3) 322 316 323 317 assert path == path2 # Same file 324 318