This app fetches latest 100 tweets of the Twitter username provided and shows a pie chart representing 5 different emotions based on tweets.
Made a Machine Learning model based on Multinomial Naive Bayes Classifier which predicts the emotion of text.
This project is a starting point for a Flutter application. A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Sign up for developer account on Twitter and get your own API credentials.
Replace the API keys and tokens in the model data/app.py file.
JPRQ is a free and open-source Ngrok alternative to expose local servers online easily.
pip3 install jprq
> python3 app.py
> python3 -m jprq http 5000
- Press Ctrl+C to stop it
Replace the generated url in the getTweets() method in lib/networking.dart
Run the flutter app now.