![]() Thanks to nylen for greatly improving Poetry Generator, by fixing code and adding s to poems! Issues FirstĪnd now you should be good to go! Credits To fix this, you just need to enable the server_names in nginx. See 'systemctl status rvice' and 'journalctl -xn' for details. Reloading nginx configuration (via systemctl): rviceJob for rvice failed. When you run, you may see the following error: The program should be running and accessible on your LAN network at If you deploy, it will also generate a nginx server block so its already to go. Then it writes a new init.d script and sends that so that it can automatically start and stop. The installation creates virtualenv and downloads the packages. This program now uses virtualenv so it can be deployed with gunicorn. ![]() This will install NGINX blocks, as well as a Linux init.d script to automatically start and stop gunicorn. I wrote a deployment script for easy NGINX deployment (keep reading). About the brain fileĬurrently you only need to put in the infinitive form, and the other forms will be determined automaticlaly. Then open your browser to localhost:8000 to see the poetry generator. Waitress-serve -port=8000 poetrygenerator:application Open up a terminal and useĭownload and unzip the NodeBox linguistics package: Use Nodebox Linguistics for plurality and conjugations (saves much space)įollow these commands to generate a poem if you have minimal experience coding/etc.Reverted to Python2 (to use Nodebox Linguistics).Now open your browser to localhost:8000! Changes in new version $ docker run -p 8000:8000 schollz/poetry-generator A "mushy poem" is strictly positive.Īll the syntax and word choices are in the brain.yaml file (more info about this below). A "poem" is a group of sentences that are structured in a way to have +1, -1 or 0 in terms of the positivity/negativity. This program works on the basis that every word in the English language is either "positive" or "negative." For instance "lovely" is positive and "thorn" is negative. A Python2 based Backus-Naur poetry generatorĪ Python2 based Backus-Naur poetry generator.
0 Comments
Leave a Reply. |