Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```