Git Product home page Git Product logo

meme-generator's Introduction

Motivational Meme Generator

Introduction meme_generator_demo

Meme Generator overview

The goal of Meme Generator is to build a "meme generator" application, to generate memes dynamically that includes an image with a quote. It handles the quotes from different file formats.

Meme Generator has the following functionalities:

  • Interacts with a variety of filetypes
  • Loads quotes from a variety of filetypes(CSVs, PDF, Word Documents)
  • Loads, manipulates, and saves images
  • Has two user input interface- web service and command-line tool

How to run the program

The program can run in two ways. Before we run the program we need to create a virtual environment.

  • Navigate the root directory and create a virtual environment.$ python3 -m venv my_meme_env
  • Source activate the virtual environment $ source my_meme_env/bin/activate
  • Install all the dependencies from the requirements.txt $ pip install -r requirements.txt

Run from the command line

The meme.py has codes to run the application from the command line. It takes three optional arguments:

  • --path: Path to the image file
  • --body: Quote body to add to the image
  • --author: Quote author to add to the image

Add your own image and quote

  • To make your own custom meme add image to src/_data/DogQuotes folder and add quotes on src/_data/DogQuotes on any four file format PDF, csv, docx, txt
  • Add static folder and a tmp folder while using the application to save the generated meme

Run flask app

  • From root directory src run flask with the command $python app.py
  • "Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)" will be displayed on the terminal, use any browser to open the address.
  • Use the Random button to get meme automatically or Use the Creator button to make a meme on your own. Fill the form with the image URL, quote, and author.

Project Modules

  • Project has 2 modules
  • QuoteEngine -Loads quotes from variety of filetypes(CSVs, PDF, Word Documents, Textfile )
  • MemeGenerator-Has files to handel image captioning.

Each class and function has a docstring with details on arguments and return.

meme-generator's People

Contributors

laxmitimalsina avatar

Stargazers

 avatar

Watchers

 avatar

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.