Skip to content

Latest commit

 

History

58 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AIGreetCraft: AI-Powered Greeting Card Generation

Abstract

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.

AIGreetCraft

Project Overview

The system consists of three main components:

  1. Poem Generator: A fine-tuned language model specialized occasion-specific poetry in Russian
  2. Background Generator: A custom-trained diffusion model for thematic background generation
  3. Figma Layout Composer: A plugin utilizing the Figma API for dynamic visual element arrangement

Structure

Using the plugin

  1. Visit the Figma plugin page.
  2. Click on "Use".
  3. Follow the on-screen instructions to generate your greeting card

Example of greeting cards

Repository Structure

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-tuning
  • Report.pdf - research paper of project

How to Run Locally

Python Environment Setup

  1. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  2. Install dependencies:

    cd src
    pip install -r requirements.txt
  3. Run the model:

    python poem_model.py

Figma Plugin Development

  1. Install Node.js dependencies:

    cd figma-plugin
    yarn install
  2. Build the plugin:

    yarn build
  3. Load the plugin in Figma:

    • Open Figma desktop app
    • Go to Plugins > Development > Import plugin from manifest
    • Select the manifest.json file from the figma-plugin directory

Authors

Acknowledgments

This project is developed as part of the GenAI course at Innopolis University.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages