Code Monkey home page Code Monkey logo

probablyhow's Introduction

probablyHow

This repo is archived and won't be updated further. If you want to give it a spin, you'll probably need to do some work to update the dependencies and get it working in Python3. This would probably be better as an SPA, though.

probablyHow is a terrible markov chain app that aggregates wikiHow articles by leveraging bleeding edge AI to bring you the best instructional content you never wanted.

probablyHow is available as a hosted Flask application and as a command-line client.

Created by @eenblam and @squigglydonut for the 2017 Stupid Shit No One Needs & Terrible Ideas Hackathon hosted at NoiseBridge.

Installation

You should probably use a virtual environment or something. Maybe it works with Python 3, maybe it doesn't.

git clone https://github.com/eenblam/probablyhow.git
cd probablyhow
python setup.py install

Command Line Usage

Here are some actual examples that we've gotten back from the model.

$ howto turn off a banana
1: First, using a spatula.
2: Add the mashed bananas.
3: For some people, a banana until it is beaten.
4: Remove from the freezer.
5: Pack a lunch and strike out for a long time even if they are working on.
6: If you are not bad for you, but many people are bound to have a bitter taste and consistency.
7: Pinch just behind the blossom end to break it apart, then peel bits of it as it is, or you can use a spoon or spatula is too dry and crumbly, spritz it with a spiky decorators tip.
8: Make sure that the thinness determines the final two minutes, to avoid burning the banana first, then add it to a year.

$ howto hack the planet
1: Enter values next to any other resources you want to give them your email so they may be required to log in yet!
2: Put in your browser.
3: Hack tools developed for Head Soccer using an online hack tools may be banned or suspended at any time for failing to adhere to the menu immediately.
4: You may also comment on the Ultimate Free Cheats site to limit downloads on the Head Soccer hack tool to work.
5: In general, these are the only options you can enter your email if you want added to your account.
6: It may also be because the information you can unblock them if you experience difficulty with accessing surveys or access Head Soccer offers unlimited points throughout gameplay.
7: A backup account is like a second account that you use an Android device, you can access without having the door closed is limited and fairly harmless . In order to get it back and how to avoid losing your account.
8: This will help you when you forget your password.

Web Server

To run the Flask application locally, run the following after following the above installation steps:

cd probablyhow
export FLASK_APP=app.py
flask run

Note that this is rather slow because:

  1. A number of round trips are needed to fetch the training data, as WikiHow only supports the bare minimum of the MediaWiki API offerings.
  2. Each request generates a new Markov model, even if you just refresh the page.

probablyhow's People

Contributors

eenblam avatar zacharymichaelmoore avatar

Stargazers

Nate Crisler avatar  avatar  avatar Lee avatar WZinda avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

cash2one

probablyhow's Issues

Cache results

wikiHow only supports the very basics of the MediaWiki API. As a result, probablyHow receives a list of titles as the result of a search, which it must then turn into a title string (e.g. title1|title2|title3.) This string is then used to receive page id's for each title in the string, which must then be fetched individually from wikiHow. This results in a LOT of round trips for the back-end, and we haven't even started training a model yet!

Naive solution: cache pages based on title strings to cut down on individual page fetches.

Twitter bot

  • Get mentioned by username
  • Parse username and query from tweet
  • Generate choice(5,9) tweet-sized instructions
  • Reply one line at a time

Each tweet needs room for x/y (hence why I'm stopping at y=9 here instead of 10)

Web app

wikiHow's stuff text is creative commons. Should be easy to produce a similar looking interface.

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.