{"id":19774562,"url":"https://github.com/yeukfei02/generative-ai","last_synced_at":"2026-04-13T01:37:28.029Z","repository":{"id":219589852,"uuid":"749398747","full_name":"yeukfei02/generative-ai","owner":"yeukfei02","description":"generative-ai","archived":false,"fork":false,"pushed_at":"2024-08-19T09:01:18.000Z","size":2822,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-11T01:26:59.741Z","etag":null,"topics":["aws-apigateway","aws-cdk","aws-lambda","bedrock","cdk","generative-ai","python","serverless","stable-diffusion","streamlit","text-to-image","text-to-text"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yeukfei02.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-28T13:26:57.000Z","updated_at":"2024-08-19T09:01:22.000Z","dependencies_parsed_at":"2024-03-07T15:29:09.300Z","dependency_job_id":"27109de8-4f2c-480f-b0ef-1a1c09cae64b","html_url":"https://github.com/yeukfei02/generative-ai","commit_stats":null,"previous_names":["yeukfei02/generative-ai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeukfei02%2Fgenerative-ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeukfei02%2Fgenerative-ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeukfei02%2Fgenerative-ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeukfei02%2Fgenerative-ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yeukfei02","download_url":"https://codeload.github.com/yeukfei02/generative-ai/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241105502,"owners_count":19910641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-apigateway","aws-cdk","aws-lambda","bedrock","cdk","generative-ai","python","serverless","stable-diffusion","streamlit","text-to-image","text-to-text"],"created_at":"2024-11-12T05:13:19.077Z","updated_at":"2026-04-13T01:37:27.995Z","avatar_url":"https://github.com/yeukfei02.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# generative-ai\n\nThis project intends to use aws cdk with aws bedrock to make API with generative ai, there are two API for `text-to-text` and `text-to-image`\n\nThe model uses `amazon titan text express v1`, `meta llama3 8b-instruct v1.0` and `stable diffusion XL v1.0`\n\nWeb ui uses streamlit\n\ndocumentation: \u003chttps://documenter.getpostman.com/view/3827865/2s9YyqjNqN\u003e\n\napi:\n\ngrammarly api url: \u003chttps://ii5m356p5f.execute-api.us-east-1.amazonaws.com/prod\u003e\n\nbest-deal api url: \u003chttps://j9pinsyob3.execute-api.us-east-1.amazonaws.com/prod\u003e\n\nideal-girl api url: \u003chttps://ev6tfvtw2g.execute-api.us-east-1.amazonaws.com/prod\u003e\n\nget-ideal-girls api url: \u003chttps://edw2m22scb.execute-api.us-east-1.amazonaws.com/prod\u003e\n\nweb:\n\ngrammarly web url: \u003chttps://generative-ai-grammarly.streamlit.app\u003e\n\nbest-deal web url: \u003chttps://generative-ai-best-deal.streamlit.app\u003e\n\nideal-girl web url: \u003chttps://generative-ai-ideal-girl.streamlit.app\u003e\n\nideal-girl-listing web url: \u003chttps://generative-ai-ideal-girl-listing.streamlit.app\u003e\n\n## Requirement\n\n- install python (v3.12.1)\n- install cdk-cli\n\nThe cdk.json file tells the CDK Toolkit how to execute your app.\n\n## Testing and run\n\n```zsh\n// create virtualenv\n$ python -m venv .venv\n\n// activate virtualenv\n$ source .venv/bin/activate\n\n// install dependencies\n$ pip install -r requirements.txt\n$ pip install -r requirements-dev.txt\n\n// install lambda layer dependencies\n$ cd lambda/layer/python\n$ pip install -r requirements.txt\n\n// run test case\n$ pytest\n```\n\n```zsh\n// copy .env file\n$ cp .env.sample .env\n\n// list all stacks in the app\n$ cdk ls\n\n// deploys the CDK toolkit stack into an AWS environment\n$ cdk bootstrap\n\n// compare deployed stack with current state\n$ cdk diff\n\n// synthesize the CloudFormation template\n$ cdk synth\n\n// deploy specific stack to your default AWS account/region\n$ cdk deploy \u003cstackName\u003e\n\n// deploy all stack\n$ cdk deploy --all\n\n// destroy specific stack\n$ cdk destroy \u003cstackName\u003e\n\n// destroy all stack\n$ cdk destroy --all\n\n// check more command\n$ cdk --help\n```\n\n```zsh\n// install dependencies\n$ cd web\n$ pip install -r requirements.txt\n\n// open grammarly web\n$ streamlit run grammarly.py\n\n// open best_deal web\n$ streamlit run best_deal.py\n\n// open ideal girl web\n$ streamlit run ideal_girl.py\n\n// open ideal girl listing web\n$ streamlit run ideal_girl_listing.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeukfei02%2Fgenerative-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeukfei02%2Fgenerative-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeukfei02%2Fgenerative-ai/lists"}