Looking for quotes that pair with your photos to post on social media or other websites? Moodquote is a web application that will analyze your photo and generate good quotes that fit your mood.
👑 Upload an image and select a mood for quotes, then you are just one click away from the quotes!
✨ If you want to choose a theme for the quotes, we also have a rich set of tags that you can choose from.
The main function of this app is to generate quotes by matching image color
, mood
and theme
(optional) with quotes features.
- Color Analysis: colors of the image uploaded by the user will be analyzed with algorithms modified from
extcolors
(a Python module for extracting colors from an image) - Feature Matching: mood and theme selected by the user will be used to match the sentiment and theme tags of quotes
Our app also displays a randomly-picked popular quote every day by using the date as the seed.
-
all_quotes_w_sentimentalScore.csv
- quote text, author, tags, and popularity are from Goodreads
- sentiment tags are generated by sentimental analysis using
NLTK sentiment Vader
-
color_tag.csv
- color and color tags are referenced from The Meaning Behind Colors
- tags are cleaned by finding synonyms using
NLTK Wordnet
To get started, clone this repo:
git clone https://github.com/sharonytlau/dash-moodquote.git
cd dash-moodquote
Install the dependencies:
pip install -r requirements.txt
Run the app:
python app.py
and visit http://127.0.0.1:8050/ in your web browser.
Now, play with it! 🚀
To test main algorithms behind the application, run
pytest test_app.py
- Dash - Python framework for web applications
- Dash Bootstrap Components - Layout engine, default styles and high-level components based on Bootstrap
Our app is made available under the Apache 2.0 License.
-
Ying Tung Lau – sharonytlau – sharonlau@brandeis.edu
-
Jiaying Yan – jiayingyan@brandeis.edu
Feel free to contact us about your user experience. Your precious feedbacks will help us improve our application! 😊