kopia lustrzana https://github.com/thinkst/zippy
Fix preset back to 2
rodzic
f29b71df2c
commit
83dd797dcd
4
zippy.py
4
zippy.py
|
@ -34,7 +34,7 @@ class LzmaLlmDetector:
|
|||
'''Class providing functionality to attempt to detect LLM/generative AI generated text using the LZMA compression algorithm'''
|
||||
def __init__(self, prelude_file : Optional[str] = None, fuzziness_digits : int = 3, prelude_str : Optional[str] = None, prelude_ratio : Optional[float] = None) -> None:
|
||||
'''Initializes a compression with the passed prelude file, and optionally the number of digits to round to compare prelude vs. sample compression'''
|
||||
self.PRESET : int = 1
|
||||
self.PRESET : int = 2
|
||||
self.comp = lzma.LZMACompressor(preset=self.PRESET)
|
||||
self.c_buf : List[bytes] = []
|
||||
self.in_bytes : int = 0
|
||||
|
@ -189,4 +189,4 @@ if __name__ == '__main__':
|
|||
for f in args.sample_files:
|
||||
print(f)
|
||||
if os.path.isfile(f):
|
||||
print(str(run_on_file_chunked(f)))
|
||||
print(str(run_on_file_chunked(f)))
|
||||
|
|
Ładowanie…
Reference in New Issue