Google Skills Boost

bb-ide-genai-004

GCP Project – qwiklabs-gcp-00-fc150d6744a7

Region – us-central1

  1. Upgrade Gen AI
  2. /usr/bin/pip3 install --upgrade google-genai google-cloud-logging

Task 1: Develop a Python function named generate_bouquet_image(prompt). This function should invoke the imagen-3.0-generate-002 model using the supplied prompt, generate the image, and store it locally. For this challenge, use the prompt: Create an image containing a bouquet of 2 sunflowers and 3 roses.

save as GenerateImage.py and run

import vertexai
from vertexai.preview.vision_models import ImageGenerationModel
def generate_bouquet_image(
    project_id: str, location: str, output_file: str, prompt: str
):
    “””Generate an image using a text prompt.
    Args:
        project_id: Google Cloud project ID, used to initialize Vertex AI.
        location: Google Cloud region, used to initialize Vertex AI.
        output_file: Local path to the output image file.
        prompt: The text prompt describing what you want to see.
    “””
    vertexai.init(project=project_id, location=location)
    model = ImageGenerationModel.from_pretrained(“imagen-3.0-generate-002”)
    images = model.generate_images(
        prompt=prompt,
        # Optional parameters
        number_of_images=1,
        seed=1,
        add_watermark=False,
    )
    images[0].save(location=output_file)
    return images
# Example usage:
generate_bouquet_image(
    project_id=’qwiklabs-gcp-03-25c367087bd7‘,
    location=’europe-west4‘,
    output_file=’image.jpeg’,
    prompt=’Create an image containing a bouquet of 2 sunflowers and 3 roses’,
)
Task 2: Develop a second Python function called analyze_bouquet_image(image_path). This function will take the image path as input along with a text prompt to generate birthday wishes based on the image passed and send it to the gemini-2.0-flash-001 model. To ensure responses can be obtained as and when they are generated, enable streaming on the prompt requests.
——-
save as AnalyseImage.py and run
import vertexai
from vertexai.generative_models import GenerativeModel, Part, Image
def analyze_bouquet_image(image_path: str):
    vertexai.init(
        project=’qwiklabs-gcp-00-fc150d6744a7′,  # Your project ID
        location=’us-central1′,                  # Your region
    )
    multimodal_model = GenerativeModel(“gemini-2.0-flash-001”)
    messages = [
        “Generate a birthday wish based on the following image”,
        Part.from_image(Image.load_from_file(location=image_path))
    ]
    chat = multimodal_model.start_chat()
    print(chat.send_message(content=messages, stream=False))
# Analyze the previously saved image
if __name__ == “__main__”:
    analyze_bouquet_image(
        image_path=’image.jpeg’
    )

ASX Investor Day May 2025

 

 

 

Event details

Event date Location Expected Attendee Numbers
Tuesday, 29th April On-Demand Filming

ASX Offices

Saturday, 17th May Brisbane Convention Centre 300-350
Saturday, 24th May Grand Hyatt Melbourne
Savoy Ballroom
123 Collins Street, Melbourne
400-450
Saturday, 31st May Hilton Sydney
Grand Ballroom, level 3
488 George Street, Sydney
600-700
2nd June- 31st June On-Demand promotion –
ASX Investor Day page
4000+ views

Important information

New speakers for Digital Built Week

New guests join Digital Built Week line-up!

Here are the relevant links to the sessions:
  1. Monday 28 April, 10:00AM Brisbane | AI and Agentic AI Innovationhttps://us06web.zoom.us/j/86511487438
  2. Wednesday 30 April, 9:00AM Brisbane | Digital Games, Precinct Planninghttps://us06web.zoom.us/j/88934021498
  3. Wednesday 30 April, 4:00PM Brisbane | Digital Built Australia Awards Receptionhttps://us06web.zoom.us/j/82097621699
  4. Thursday 1 May, 10:00AM | Is Technology the Problem?https://us06web.zoom.us/j/84834133021

Register now to attend the nation’s leading digital built dialogue, 28 April – 1 May 2025.

Digital Precinct Planning, a Brisbane 2032 Games Opportunity

Wednesday 30 April

Susan Skuodas is Director of Place Management at the Sydney Olympic Park Authority and has been leading an Australian-first trial in building digital transparency and trust in legacy precincts. How might new voluntary digital standards and lessons learned from other precincts support the ongoing planning of Brisbane 2032?

Is Technology the Problem?

Thursday 1 May

Wellington City Council in New Zealand have been investing in technology for decades to enhance its city planning functions and service delivery performance. Kelly Henderson leads the city’s digital innovation team, and joins our panel of provocateurs to discuss the question – “has technology held us back from technological innovation and adoption?”

Digital Built Week offers five events:

  1. ACCELERATING INNOVATION WITH AI AND AGENTIC AI

 

DIGITAL TWIN PRACTITIONERS FORUM (fully subscribed)

THE NOW OPPORTUNITY FOR BRISBANE 2032 – DIGITAL SOLUTIONS FOR PRECINCT PLANNING

DIGITAL BUILT AUSTRALIA AWARDS CEREMONY

IS TECHNOLOGY THE PROBLEM?

REGISTRATION IS FREE.

One ticket gets you access to all five Digital Built Week events.

Abstract Submissions Close April 30 for 8th ASCP Concrete Pavements Conference 2025

Final Reminder:  Abstract Submissions Close April 30 for 8th ASCP Concrete Pavements Conference 2025

Time is running out to submit abstracts for presentation consideration at the premier industry event for concrete pavement professionals. The 8th ASCP Concrete Pavements Conference 2025 seeks cutting-edge research and innovative case studies addressing:

• Roadway pavement advancements
• Airfield surface technologies
• Port and heavy industrial applications
Rail infrastructure solutions
• Emerging materials and construction methods

The conference committee invites researchers, engineers, and industry leaders to share their expertise with international peers. Selected presenters will contribute to critical knowledge exchange shaping the future of durable, sustainable pavement solutions.

Abstracts must be submitted through the official portal by 11:59 PM EDT on April 30, 2025. Late submissions cannot be considered.

Submit your abstract:
https://lnkd.in/gWV6nw87