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 details)

Uploaded Source

File details

Details for the file zf-memician-0.1.2.tar.gz.

File metadata

  • Download URL: zf-memician-0.1.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for zf-memician-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3d67572f58946ff3cb9331a54b5c3601936572defd5d462918fded84cf4fd0a8
MD5 68b3e407ce811e5554af3e1805e292c2
BLAKE2b-256 79861b6615bb2d56163109859acefa56aec90783cd660708b209b587e2fc67dd

See more details on using hashes here.

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