AIGreetCraft is a research project exploring the application of generative AI in creating personalized greeting cards. The system integrates a couple of AI components: a fine-tuned language model for poetry generation and a diffusion model for background creation - all within a Figma plugin interface. This project is developed as part of the GenAI course at Innopolis University.
The system consists of three main components:
- Poem Generator: A fine-tuned language model specialized occasion-specific poetry in Russian
- Background Generator: A custom-trained diffusion model for thematic background generation
- Figma Layout Composer: A plugin utilizing the Figma API for dynamic visual element arrangement
- Visit the Figma plugin page.
- Click on "Use".
- Follow the on-screen instructions to generate your greeting card
This repository is organized as a monorepo with the following components:
/src
- Core model training and implementation code/modal
- Deployment configuration and code for Modal platform/modal/poem-llm
- Serverless deployment of the poem generation model using Modal/modal/postcard-content
- Serverless deployment of content in the postcard
/figma-plugin
- Figma plugin implementation/experiments
- Jupyter notebooks and experimental code/datasets
- datasets used for fine-tuningReport.pdf
- research paper of project
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
cd src pip install -r requirements.txt
-
Run the model:
python poem_model.py
-
Install Node.js dependencies:
cd figma-plugin yarn install
-
Build the plugin:
yarn build
-
Load the plugin in Figma:
- Open Figma desktop app
- Go to Plugins > Development > Import plugin from manifest
- Select the
manifest.json
file from thefigma-plugin
directory
- Nazgul Salikhova, Innopolis, n.salikhova@innopolis.university
- Natalia Agapova, Innopolis, n.agapova@innopolis.university
- Andrew Levada, Innopolis, a.levada@innopolis.university
This project is developed as part of the GenAI course at Innopolis University.