kopia lustrzana https://github.com/thinkst/zippy
Add encoding to PRELUDE reading
rodzic
f8fd3f4f8f
commit
a4a89ce33c
|
@ -42,7 +42,7 @@ def clean_text(s : str) -> str:
|
|||
|
||||
# The prelude file is a text file containing only AI-generated text, it is used to 'seed' the LZMA dictionary
|
||||
PRELUDE_FILE : str = 'ai-generated.txt'
|
||||
PRELUDE_STR = clean_text(files('zippy').joinpath(PRELUDE_FILE).read_text())
|
||||
PRELUDE_STR = clean_text(files('zippy').joinpath(PRELUDE_FILE).read_text(encoding='utf-8'))
|
||||
|
||||
class AIDetector(ABC):
|
||||
'''
|
||||
|
|
Ładowanie…
Reference in New Issue