diff --git a/.gitignore b/.gitignore index aeb02b8..0521a6d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ out downloaded.lst delojza.log +initial.txt \ No newline at end of file diff --git a/delojza.py b/delojza.py index fae1955..480ec82 100755 --- a/delojza.py +++ b/delojza.py @@ -22,7 +22,7 @@ logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger("kunsax") -markov: markovify.NewlineText +markov = None def add_to_corpus(text): diff --git a/robot.sh b/robot.sh index 733aaf2..7981c3a 100755 --- a/robot.sh +++ b/robot.sh @@ -2,4 +2,5 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd ${DIR} ./update.sh & +source ./venv/bin/activate python3 delojza.py 2>&1 |tee -a delojza.log