AlbertoFH98 commited on
Commit
17a7a79
1 Parent(s): b747bac

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -4
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
- formatted_transcription = f.read()
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,