Fix preset back to 2

pull/6/head
Jacob Torrey 2023-06-10 18:46:14 -06:00 zatwierdzone przez GitHub
rodzic f29b71df2c
commit 83dd797dcd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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)))