Update summarize.py
Browse files- summarize.py +2 -2
summarize.py
CHANGED
@@ -41,8 +41,8 @@ llm_loader = app_init(False)[0]
|
|
41 |
source_pdfs_path = (
|
42 |
sys.argv[1] if len(sys.argv) > 1 else os.environ.get("SOURCE_PDFS_PATH")
|
43 |
)
|
44 |
-
chunk_size = os.environ.get("CHUNCK_SIZE")
|
45 |
-
chunk_overlap = os.environ.get("CHUNK_OVERLAP")
|
46 |
|
47 |
sources = load_documents(source_pdfs_path, None)
|
48 |
|
|
|
41 |
source_pdfs_path = (
|
42 |
sys.argv[1] if len(sys.argv) > 1 else os.environ.get("SOURCE_PDFS_PATH")
|
43 |
)
|
44 |
+
chunk_size = sys.argv[2] if len(sys.argv) > 2 else os.environ.get("CHUNCK_SIZE")
|
45 |
+
chunk_overlap = sys.argv[3] if len(sys.argv) > 3 else os.environ.get("CHUNK_OVERLAP")
|
46 |
|
47 |
sources = load_documents(source_pdfs_path, None)
|
48 |
|