Giter Club home page Giter Club logo

genai-relax's Introduction

Gen AI Relax

A GenAI serverless application example built with Amazon API Gateway, Amazon Lambda, Amazon DynamoDB and Amazon Bedrock.

The solution has two main components:

  1. relaxing-ui: a simple web interface written in VueJS.

  2. sam-deployment: SAM application that creates 3 lambda functions (one to generate descriptions with Claude, another to generate images with Stable Diffusion and a third one to generate audio from the description using Polly), a dynamodb table to keep track of the descriptions and an API Gateway as entry point

Use cases

The application is able to create positive image descriptions for topics selected by the users (the example UI goes over three different topics: High Views, Animals and Sport Venues), these descriptions are then processed one by one to generate an image and audio representations.

Uses can go from helping users to relaxing and reduce anxiety (concentrating on the images being displayed), to creating memory games (which can be used to evaluate cognitive decline) and even for education (e.g., showing geometric images and asking children to identify which shape is in the screen). An audio description plays per image as an example of how to make a website more accessible.

Installation

This application uses the Amazon Bedrock service which is, at the time of this commmit, in preview. The libraries for this service are not included in the public boto3 libraries, so it is needed to manually add the following files into an installers directory within the folders sam-deployment/generate_descriptions and sam-deployment/generate_image:

  1. awscli-1.27.162-py3-none-any.whl
  2. boto3-1.26.162-py3-none-any.whl
  3. botocore-1.29.162-py3-none-any.whl

Without these files, the docker build will fail for those functions. If you don't have access to Bedrock's libraries, please contact your AWS account team.

Issues

Please open bugs for any questions or issues.

genai-relax's People

Contributors

sfloresk avatar

Watchers

 avatar Kostas Georgiou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.