GoodNews After seeing John Krasinki's Some Good News,, we made an iOS app that curates only the positive news from a news api using a machine learning model. The motivation behind this app was the fact that many people are feeling down because of the quarantine and are constantly bombarded by bad news. This app was made with hopes of bringing the spirits of people up while keeping them informed and we will try to make the features even better in the future. This is just a MVP. If we had time we would have implemented the twitter API, however we were only able to make the UI.

This model takes as input some text and outputs either "Pos", "Neg", or "Neutral." We imported this model into our iOS app and used it to only show the news with "Pos" as the label. Some challenges that we faced were trying to use PyTorch to train a stronger model but we weren't able to figure out how to import python code into swift, so we pivoted to use Apple's coreml framework. Some other challenges include that the original news api we were using in the beginning until their urlImage json property broke, so we had to implement a different less robust API known as newslit that did not have the same features news api had, at the last second.

We also used firebase as our backend to allow users to save and bookmark their articles and also used it for our authentication setup.

This was a fun project that taught us a lot, and we hope that it can be inspiration for others to use their skills to bring joy to other people!

Instructions To use this app, you simply have to download the zip file and open it on your computer in a desired location. Then, open the white file called GoodNews.xcworkspace. Here, it will take a while for the project to build and index. As you are waiting, download an iOS simulator to run this app on. Then, click command+b and command+r to build and run this app on your virtual iPhone.

If this does not work, there may have been a problem with setting up the pods. Thus, you can try to run pod update in your terminal at the directory of which the Podfile is. You can also try to delete the Podfile.lock, Pods/, and GoodNews.xcworkspace files/directories and run pod install. Then open the newly created GoodNews.xcworkspace (white colored one) file and follow the previous instructions to run it!

Built With

Share this project: