Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· openaiHugging Face Suzhen/CodeChat

from pygoogle_image import image as pi pi.download(' $NOT',…

  1. User

    from pygoogle_image import image as pi pi.download(' $NOT', limit=3,extensions=['.jpeg']) now every picture is the same , how can i change this

  2. Assistant

    To avoid downloading the same image repeatedly, you can modify your code as follows:

    from pygoogle_image import image as pi 
    
    query = 'dog'  # Replace '$NOT' with your desired search query
    limit = 3
    
    # Pass the query and limit to the download function
    pi.download(query, limit=limit, extensions=['.jpeg'])
    

    Make sure to replace '$NOT' with your desired search query. This will ensure that you retrieve different images by specifying a valid search query.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.