Installation requirements
- pip install flask
- pip install requests
- pip install nltk
- python server.py and go to localhost:5000 in browser
Code Structure
- class definition: TextToImages
- First-party packages: json, string, defaultdict
- Third-party packages: requests, flask, nltk (natural language processing)