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.3.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file zf-memician-0.1.3.tar.gz
.
File metadata
- Download URL: zf-memician-0.1.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 958e0ff8731eb6fd78574cc645b669bd6ab5e9d3c5ae601b3ff49dbdc629a1d7 |
|
MD5 | 69d145deeb1eda09d04e66ca7f920358 |
|
BLAKE2b-256 | c3669997d85841d95eeeea7de890dfba4879dab2bde1daa06580ce0d7a39ce28 |
File details
Details for the file zf_memician-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: zf_memician-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6275407474494ff1c5cf7ca59e4b86c85a05b836087d02a4d8096decc385413e |
|
MD5 | 77f9e8cf33a8675d3ead3c9aad1c5945 |
|
BLAKE2b-256 | a0e618fb384850db3ad88d92a4356b3e67ed97038e3525b94724823e4f526048 |