From 4d4ece82eb6bf8a85e5bf78fd077497c128ae97a Mon Sep 17 00:00:00 2001 From: Gigi Date: Fri, 4 Apr 2025 22:14:05 +0100 Subject: [PATCH] refactor: remove generate_summary function in favor of summary plugin --- src/watch_voice_memos.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/watch_voice_memos.py b/src/watch_voice_memos.py index c7661fc..2d1ff3d 100755 --- a/src/watch_voice_memos.py +++ b/src/watch_voice_memos.py @@ -24,21 +24,6 @@ logging.basicConfig( logger = logging.getLogger('voice_memo_watcher') -def generate_summary(transcript_text: str) -> str: - """Generate a summary of the transcript.""" - prompt_dir = Path(__file__).parent.parent / "prompts" - with open(prompt_dir / "summary.md", 'r', encoding='utf-8') as f: - prompt_template = f.read() - - prompt = prompt_template.format(transcript=transcript_text) - response = ollama.chat(model='llama2', messages=[ - { - 'role': 'user', - 'content': prompt - } - ]) - return response['message']['content'].strip() - def determine_content_type(transcript_text: str) -> str: """Determine the type of content in the transcript.""" text = transcript_text.lower()