rohitkshirsagar19 commited on
Commit
d317597
·
verified ·
1 Parent(s): 301dd5b

fix : Updated the compress_prompt param

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -88,7 +88,7 @@ def compress_text(text: str, aggression: int) -> str:
88
  text,
89
  rate=ratio,
90
  force_tokens=["\n"],
91
- drop_consecutive_whitespace=True,
92
  )
93
  return result.get("compressed_prompt", text)
94
 
 
88
  text,
89
  rate=ratio,
90
  force_tokens=["\n"],
91
+ #drop_consecutive_whitespace=True, # not supported to current version
92
  )
93
  return result.get("compressed_prompt", text)
94