modified this line fewiufweuyfwefi
Take in a post from twitter/facebook/ and other social-media platforms and train the model to classify the text with an “importance scale”. If the input consists of images, we add a tag with appropriate detail to the text input and hope the classifier rates the image tag higher. Example tag [IMAGE, 1080x400, name of pic]. After we classify a text/post we can filter the collection of tweets and display the posts that are worth reading. Input: text and other meta-data of the post Output: either a Yes vs No or a numerical scale for how important the post is.
https://console.cloud.google.com/bigquery
testing readme
- twitter-classifier
- Table of Content:
- Building an Flask App - Flask Documentation - Bootstrap Documentation
- Extra Credit: Deploying your app to Heroku.
- https://www.kaggle.com/mtesconi/twitter-deep-fake-text
- https://www.kaggle.com/phoeyleeteh/1970-vs-2017-profanity-curse-swearing-words
- https://www.kaggle.com/davidmartngutirrez/twitter-bots-accounts
- https://www.kaggle.com/cosmos98/twitter-and-reddit-sentimental-analysis-dataset?select=Twitter_Data.csv
Once you have a flask app running locally on your machine already, you can then try to make a live website that anyone can visit by depolying it to Heroku.
These instructions were adapted from this tutorial blog.
- Sign up for a free Heroku account at https://signup.heroku.com/signup/dc
- You should all already have git installed, so you can skip this step. Make sure you have git installed.
- For Mac Users: Install Homebrew if you dont have it already. (Window users can skip this step.)
- Install the Heroku CLI tool. Mac users need homebrew to install Heroku, Window users dont need it to install Heroku.
(You should already have this step completed, but if you dont, you need to add your files to a github repo.)
- Create a github repo for your app.
- Clone that repo to your local machine.
- Git add, commit, and push the webapp files to your repo. Now you should have a github repo that contains all the files you need for your web app, now we need to link, push, and deploy them onto heroku. Your github repo should look something like this.
- Make sure you have followed the instructions above for installing the Heroku CLI and git to your machine first.
- From your github repo folder, in your terminal, type in
heroku login
. Follow the login instructions. - Next create your app using
heroku create your-webapp-name
. Replace 'your-webapp-name' with the app name you would like to use. It will be a part of your final URL. - Then, add your git to heroku by using
heroku git:remote -a your-webapp-name
. Again, replace 'your-webapp-name' with the name you used above to create your app. - Finally, push your files to heroku by using
git push heroku HEAD:master
After you push your files to heroku, it should spit out a link to your webapp, it will look something like,https://web-app-name.herokuapp.com/
Say you've updated your webapp files now want to update your hosted webapp.
- Add, commit, and push all the changes to your github repo.
- Run the
git push heroku HEAD:master
command.