From 61e05de199896fe8ff74d688efd69b4905901b83 Mon Sep 17 00:00:00 2001 From: Kay Faraday Date: Tue, 24 May 2022 04:45:55 +0000 Subject: [PATCH] Fix limit_length --- generators/markov.py | 1 + third_party/utils.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/markov.py b/generators/markov.py index 5bf7a0e..7e1d7a4 100644 --- a/generators/markov.py +++ b/generators/markov.py @@ -2,6 +2,7 @@ import sqlite3 import markovify +from random import randint def make_sentence(cfg): class nlt_fixed(markovify.NewlineText): # modified version of NewlineText that never rejects sentences diff --git a/third_party/utils.py b/third_party/utils.py index fa15435..b6de7ae 100644 --- a/third_party/utils.py +++ b/third_party/utils.py @@ -13,7 +13,6 @@ import itertools import json5 as json import multiprocessing import anyio.to_process -from random import randint from bs4 import BeautifulSoup TextGenerationMode = enum.Enum('TextGenerationMode', """