AlbertoFH98 commited on
Commit
144cc2d
·
1 Parent(s): 887709e

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -224,7 +224,7 @@ def get_gpt_response(transcription_path, query, logger):
224
 
225
  # -- Text summarisation with OpenAI (map-reduce technique)
226
  def summarise_doc(transcription_path):
227
- llm = ChatOpenAI(temperature=0)
228
 
229
  # -- Map
230
  loader = TextLoader(transcription_path)
 
224
 
225
  # -- Text summarisation with OpenAI (map-reduce technique)
226
  def summarise_doc(transcription_path):
227
+ llm = ChatOpenAI(temperature=0, max_tokens=1024)
228
 
229
  # -- Map
230
  loader = TextLoader(transcription_path)