Spaces:
Sleeping
Sleeping
Update summarizer.py
Browse files- summarizer.py +3 -1
summarizer.py
CHANGED
@@ -5,7 +5,9 @@ from langchain.chains.summarize import load_summarize_chain
|
|
5 |
from pathlib import Path
|
6 |
|
7 |
|
8 |
-
def summarize_file(method,
|
|
|
|
|
9 |
# Initialize the LLM
|
10 |
llm = Cohere(temperature=0)
|
11 |
|
|
|
5 |
from pathlib import Path
|
6 |
|
7 |
|
8 |
+
def summarize_file(method, files):
|
9 |
+
|
10 |
+
file = files[0]
|
11 |
# Initialize the LLM
|
12 |
llm = Cohere(temperature=0)
|
13 |
|