Skip to main content

Memician is a state of the art Memelord

Project description

Memician

Memician is the state of the art Memelord

$ pip install zf-memician

Design

  • Memician finds relevant memes by executing semantic search over the memes library
  • Memician uses Rewriter to convert the user's prompt into a MemeLibrary search query
  • Memician uses Structurer to convert the user's prompt into inputs for MemeTemplate
graph TD
    User --> |Prompt| M[Memician]

    M --> |Query| L[Library]

    L --> T1[Template 1]
    L --> T2[Template 2]
    L --> T3[Template n]

    M --> |Template, Inputs| G[Generator]
    G --> |Output| Meme

    M1[Memician] --> |Prompt, Template| S1(Structurer)
    S1 --> |Inputs| M1

Notes

  • You can generate a concise description of a meme by using an LLM model
✨ Explain this given meme in 15 words or less: distracted boyfriend meme

Guy ignores his girlfriend, captivated by another woman representing a new interest or trend.

Installation

Sqlite3

Update your /.zshrc file:

export LDFLAGS="$LDFLAGS -L$(brew --prefix sqlite)/lib"
export CPPFLAGS="$CPPFLAGS -I$(brew --prefix sqlite)/include"
export PYTHON_CONFIGURE_OPTS="--enable-loadable-sqlite-extensions"

Then run:

pyenv install 3.11.9
pyenv global 3.11.9
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

Usage

memician <path> <template> <*args> <*options>
  • path is where on your computer you want to save the meme.
  • template is the underlying template to use for the meme (not case sensitive).
  • *args are all arguments to be placed onto the template.
    • Multi-word arguments must be surrounded by "" quotation marks
    • Arguments can be images, pasted onto the template. Image-links should be given in '<>' angle brackets.
  • *options are the options that modify behavior of the generation.
    • Options are passed with '{}' curly braces.
    • Currently supported options: "stretch".

License

All rights reserved.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zf-memician-0.1.2.tar.gz (3.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page