Spaces:
Runtime error
Runtime error
AlbertoFH98
commited on
Commit
·
17a7a79
1
Parent(s):
b747bac
Update utils.py
Browse files
utils.py
CHANGED
@@ -280,12 +280,9 @@ def summarise_doc(transcription_path, model_name, model=None):
|
|
280 |
split_docs = text_splitter.split_documents(docs)
|
281 |
doc_summary = map_reduce_chain.run(split_docs)
|
282 |
else:
|
283 |
-
loader = TextLoader(transcription_path)
|
284 |
-
docs = loader.load()
|
285 |
-
|
286 |
# -- Keep original transcription
|
287 |
with open(transcription_path, 'r') as f:
|
288 |
-
|
289 |
|
290 |
llm = TogetherLLM(
|
291 |
model= model,
|
|
|
280 |
split_docs = text_splitter.split_documents(docs)
|
281 |
doc_summary = map_reduce_chain.run(split_docs)
|
282 |
else:
|
|
|
|
|
|
|
283 |
# -- Keep original transcription
|
284 |
with open(transcription_path, 'r') as f:
|
285 |
+
docs = f.read()
|
286 |
|
287 |
llm = TogetherLLM(
|
288 |
model= model,
|