diff --git a/.gitignore b/.gitignore index 5466fa5..5c70ae3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -.*_cache +.*_cache* .coverage* .DS_Store .venv diff --git a/src/summarizer/app.py b/src/summarizer/app.py index 0877e40..b864457 100644 --- a/src/summarizer/app.py +++ b/src/summarizer/app.py @@ -1,10 +1,14 @@ """Main module for the application.""" +from langchain.cache import SQLiteCache +from langchain.globals import set_llm_cache + from summarizer.cli import create_argument_parser from summarizer.summarize import summarize_path def main() -> None: """Run the main program.""" + set_llm_cache(SQLiteCache(database_path=".summarizer_cache.db")) args = create_argument_parser().parse_args() print(summarize_path(args.path))