Generate an image from a poem with Cloud Functions for Firebase, Cloud Vertex API, PaLM, and Imagen.
- Create a new Firebase project and enable the Blaze plan
- Enable the following in the Firebase console:
- Cloud Firestore
- Sign in with Google
- Run
firebase init
in this repository
- Enable the following in the Firebase console:
- Enable the Vertex AI API
- Run
npm install
- Run
firebase deploy