Code Monkey home page Code Monkey logo

goodnews's Introduction

GoodNews

After seeing John Krasinki's Some Good News, https://www.youtube.com/watch?v=F5pgG1M_h_U, 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. This app was made with hopes of bringing the spirits of people up and we will try to make the features even better in the future. This is just a MVP.

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 stopped working, so we had to find a new one and use that instead.

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 file and follow the previous instructions to run it!

goodnews's People

Contributors

danteshub avatar connorray avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

connorray

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.