<s>[INST] import io
from google.cloud import vision
from google.oauth2 import service_account
import pandas as pd

# Create credentials
credentials = service_account.Credentials.from_service_account_file('gcp-credentials.json')
client = vision.ImageAnnotatorClient(credentials=credentials)

def extract_info(response):
    try:
        text = response.text_annotations[0]
        return text.description
    except IndexError:
        return None

def main():
    images = ['image1.jpg', 'image2.jpg', 'image3.jpg']
    results = []
    with io.BytesIO() as output:
        for image in images:
            with open(image, 'rb') as image_file:
                content = image_file.read()
                image = vision.types.Image(content=content)
                response = client.text_detection(image=image)
                results.append(extract_info(response))
    df = pd.DataFrame(results)
    df.to_csv('output.csv', index=False)

if __name__ == "__main__":
    main()

This script is designed to extract text from images using the Google Cloud Vision API. But I want to extend it to extract text from multiple images at once. How can I do that?[/INST]