bisoye commited on
Commit
f9df938
1 Parent(s): a8c5b03

Update summarizer.py

Browse files
Files changed (1) hide show
  1. summarizer.py +1 -1
summarizer.py CHANGED
@@ -11,7 +11,7 @@ def summarize_files(method, files):
11
  # Load and read each file
12
  for file in files:
13
 
14
- ext = Path(file_path).suffix.lower()
15
  if ext == '.pdf':
16
  loader = PyPDFLoader(file)
17
  elif ext == '.docx':
 
11
  # Load and read each file
12
  for file in files:
13
 
14
+ ext = Path(file).suffix.lower()
15
  if ext == '.pdf':
16
  loader = PyPDFLoader(file)
17
  elif ext == '.docx':