Added some more models
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -9,7 +9,10 @@ api_id = os.getenv('API_ID')
|
||||
api_hash = os.getenv('API_HASH')
|
||||
chats = [
|
||||
'tg1337const',
|
||||
'cyberboec'
|
||||
'cyberboec',
|
||||
'topor',
|
||||
'workBrothers',
|
||||
'anekdot_bb'
|
||||
]
|
||||
|
||||
def cleanup(msg):
|
||||
@@ -35,7 +38,7 @@ with TelegramClient('bot', api_id, api_hash) as client:
|
||||
data = data + cleanup(message.text)
|
||||
|
||||
text_model = markovify.Text(data)
|
||||
# text_model.compile(inplace = True)
|
||||
text_model.compile(inplace = True)
|
||||
model_json = text_model.to_json()
|
||||
f = open(f"data/{chat}.json", "w")
|
||||
f.write(model_json)
|
||||
|
||||
Reference in New Issue
Block a user