Spaces:
Sleeping
Sleeping
fix : Updated the compress_prompt param
Browse files
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 |
|