GithubHelp home page GithubHelp logo

waiphyomaung / chataws Goto Github PK

View Code? Open in Web Editor NEW

This project forked from banjtheman/chataws

0.0 0.0 0.0 70 KB

A ChatGPT plugin that allows users to create websites and Lambda functions using ChatGPT

License: MIT License

Python 97.10% Dockerfile 2.90%

chataws's Introduction

ChatAWS

Create AWS Lambda functions and websites in Amazon S3 using ChatGPT.

chataws_fast.mp4

Features

  • Create AWS Python Lambda functions with or without dependencies.
  • Create Static websites using Amazon S3.

Prerequisites

To use this plugin, you will need the following:

  • Docker
  • An AWS account with access to S3 and Lambda services

Installation

Clone the repository:

git clone https://github.com/banjtheman/chataws.git

Change to the repository directory:

cd chataws

Build the Docker image:

docker build . -t aws_chatgpt_plugin

Setup

You will need to setup AWS access keys that can do the following.

  • Put Object to the designated bucket
  • Create Lambda Functions
  • Create Lambda Function URL

In addition, you must create a Lambda Role for the app to use, as well as provide an S3 bucket that allows public objects.

Start Docker

Run the Docker container with the required environment variables:

docker run -p PORT:PORT \
-e AWS_DEFAULT_REGION=<your_aws_region> \
-e AWS_ACCESS_KEY_ID=<your_aws_access_key> \
-e AWS_SECRET_ACCESS_KEY=<your_aws_secret_key> \
-e LAMBDA_ROLE=<your_lambda_role_arn> \
-e S3_BUCKET=<your_s3_bucket_name> \
-e PORT=PORT \
aws_chatgpt_plugin

Once up you can follow the instructions here to run the plugin within ChatGPT,

Example Prompts

You can test the plugin with some of these prompts:

  • Use the ChatAWS Plugin to create a Lambda function that generates a random number between a min and a max number input from a user
  • Use the ChatAWS Plugin to create a website in that invokes the Lambda Function and displays the random number each time a button is pressed, and lets the user change the min and max values
  • Use the ChatAWS Plugin to create a Lambda function that uses the VADER Sentiment Analysis library to perform sentiment analysis on input text
  • Use the ChatAWS Plugin to create a website that invokes the sentiment analysis Lambda Function on an input string from a text box.

Example Outputs

ChatAWS Plugin creating a Lambda Function

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please create an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Support

If you need help or have any questions, please feel free to open an issue or contact the maintainer.

chataws's People

Contributors

banjtheman 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.