Let’s build a GenAI app on Cloud Run

Google Cloud TechAbout 3 min readJul 18, 2025Watch original
THE SUMMARYAI-generated

Key Concepts:

  • Generative AI in application development
  • Low-code/no-code AI application development
  • Streamlit UI library
  • Vertex AI API
  • Imagen API (text-to-image)
  • AI-powered product ideation
  • AI-driven image generation
  • Grounding (connecting model output to verifiable sources)
  • Role of developers as architects

1. Introduction: The Changing Landscape of AI in Applications

  • The speaker (Martin) introduces Jerome, a Field Solution Architect at Google focusing on Generative AI.
  • The core idea is that AI application development is becoming more accessible, allowing developers to focus on application architecture rather than extensive data collection and model training.
  • Jerome emphasizes that developers can now "just start building" applications.

2. Sample Application: AI-Powered Product Ideation for Beach Bags

  • Application Overview: Jerome demonstrates an application designed to assist designers and marketers in generating ideas for new products using AI.
  • Use Case: The example focuses on creating a new campaign for beach bags.
  • Feature 1: Fabric Suggestion:
    • The user inputs a question: "is there a resistant but fashionable fabric I can use for a bag?"
    • The AI suggests denim and other materials.
  • Feature 2: Mood Board Generation:
    • The user inputs keywords: "rugged but fashionable denim bag that you can bring to the beach," "stylish, resistant, beach."
    • The user specifies the target audience: "parents with young kids."
    • The application generates four images for inspiration.
  • Feature 3: Ideation Assistant:
    • The Ideation Assistant engages in a back-and-forth question-and-answer session with the user to refine the product idea.
    • Example: The user enters "I am interested in a collection of bags that families with young kids can bring to the beach." The AI asks follow-up questions to narrow down the specifics.
  • Feature 4: Visual Description Generation:
    • The user asks the AI to "please generate a detailed visual description of the bag we have discussed that I can give to my design team."
  • Feature 5: Image Assistant (Imagen API):
    • The generated visual description is pasted into the Image Assistant, which uses Google's Imagen text-to-image model to create photorealistic images of the beach bag.
    • Imagen is described as being "capable of generating photorealistic images with rich lighting."

3. Technical Details and Implementation

  • Tools Used:
    • Python
    • Streamlit (user interface library)
    • Vertex AI API
    • Imagen API
  • Code Length: The application's code is relatively short, consisting of 600-700 lines, including the UI. This is attributed to Google handling the complex AI processing on the server-side.
  • Cost: Each API call to the AI costs "a few cents."
  • Code Snippet (generative.py):
    • The code initializes the AI model.
    • The code calls the model and retrieves the response.
    • The code utilizes "grounding" to connect the model output to verifiable sources of information, enhancing the results.

4. Open Source and Accessibility

  • The code for the application is open source and available for viewers to use as a starting point for their own AI applications.
  • A link to the repository will be provided in the video description.

5. The Evolving Role of Developers

  • Jerome argues that AI is transforming the role of developers, enabling them to be more like "architects of the solution" rather than traditional programmers.
  • The need for large development teams is diminishing.
  • Martin echoes this sentiment, stating that "one developer can do today what our whole team did back then."
  • The conclusion is that there has "never been a better time to be a developer."

6. Conclusion

  • Martin thanks Jerome for demonstrating the application.
  • Viewers are encouraged to leave questions and feedback in the comments.
  • Martin expresses excitement to see what viewers will build using these tools.

AI summaries can miss context or contain errors. Check important details against the original video.

Go a little deeper.

Have a question about this video? Load its transcript to open the video chat.