Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yeukfei02/generative-ai-google-cloud
generative-ai-google-cloud
https://github.com/yeukfei02/generative-ai-google-cloud
gemini google-cloud google-cloud-functions python serverless streamlit text-to-image text-to-text vertex-ai
Last synced: about 2 months ago
JSON representation
generative-ai-google-cloud
- Host: GitHub
- URL: https://github.com/yeukfei02/generative-ai-google-cloud
- Owner: yeukfei02
- License: mit
- Created: 2024-03-06T15:08:59.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-02T04:05:41.000Z (9 months ago)
- Last Synced: 2024-05-09T16:13:48.804Z (8 months ago)
- Topics: gemini, google-cloud, google-cloud-functions, python, serverless, streamlit, text-to-image, text-to-text, vertex-ai
- Language: Python
- Homepage:
- Size: 96.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# generative-ai-google-cloud
This project intends to use google cloud function with vertex ai gemini to make API with generative ai, there are two API for `text-to-text` and `text-to-image`
The model uses `gemini 1.0` and `imagen 005`
documentation:
getItinerary api url:
generate wallpaper api url:
travel planner web url:
generate wallpaper web url:
## Requirement
- install yarn
- install node (v18)
- install python (v3.9)
- install serverless
- install gcloud cli## Testing and run
```zsh
// get bearer token
$ gcloud auth print-identity-token// deploy to serverless
$ yarn run deploy// generate .serverless folder
$ yarn run package// remove serverless services in google cloud
$ yarn run remove// check serverless.yml
$ yarn run doctor
``````zsh
// install dependencies
$ cd web
$ pip install -r requirements.txt// open web
$ streamlit run travel_planner.py
```