AlbertoFH98 commited on
Commit
28151ad
1 Parent(s): 97550df

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -91,7 +91,6 @@ class TogetherLLM(LLM):
91
  transcription_cleaned = re.sub(r'\W+', ' ', transcription_cleaned).strip().lower()
92
  for resultado_aux in resultado_alpha_num:
93
  if resultado_aux in transcription_cleaned:
94
- print(regex_init_transcription, " - VS - ", transcription)
95
  init_transcription = re.search(regex_init_transcription, transcription).group(0)
96
  new_transcription.append(init_transcription + '\"' + resultado_aux + '\"')
97
  # -- Merge with original transcription
@@ -99,6 +98,7 @@ class TogetherLLM(LLM):
99
  new_cleaned_prompt = re.sub(regex_transcription, f"""CONTEXTO:
100
  {new_transcription}
101
  PREGUNTA:""", cleaned_prompt, re.DOTALL)
 
102
  output = together.Complete.create(new_cleaned_prompt,
103
  model=self.model,
104
  max_tokens=self.max_tokens,
 
91
  transcription_cleaned = re.sub(r'\W+', ' ', transcription_cleaned).strip().lower()
92
  for resultado_aux in resultado_alpha_num:
93
  if resultado_aux in transcription_cleaned:
 
94
  init_transcription = re.search(regex_init_transcription, transcription).group(0)
95
  new_transcription.append(init_transcription + '\"' + resultado_aux + '\"')
96
  # -- Merge with original transcription
 
98
  new_cleaned_prompt = re.sub(regex_transcription, f"""CONTEXTO:
99
  {new_transcription}
100
  PREGUNTA:""", cleaned_prompt, re.DOTALL)
101
+ print(new_cleaned_prompt)
102
  output = together.Complete.create(new_cleaned_prompt,
103
  model=self.model,
104
  max_tokens=self.max_tokens,