Skip to content

Why [VLSearchImage] No image found: [], [], []? #210

@ciroimmobile

Description

@ciroimmobile

I was trying WebWatcher. However, when I try the eval.sh, it can return text search result, but the image search results is error. I use the google search api from the serper.dev. Did the TEXT_SEARCH_KEY and the IMG_SEARCH_KEY in eval.sh same?

`def search_image_by_image_url(self, download_url, img_save_path=None, byte=True, retry_attempt=10, timeout=30):
        params = {
        "engine": "google_reverse_image",
        "image_url": download_url,
        "api_key": IMG_SEARCH_KEY,
        }
        results = {}  
        for attempt in range(retry_attempt):
            try:
                search = GoogleSearch(params)
                rst = search.get_dict()
                print(f"[DEBUG] API response keys: {rst.keys()}")
                print(f"[DEBUG] image_results count: {len(rst.get('image_results', []))}")
                docs = rst.get('image_results', [])`

I added the DEBUG code, and it returned

[DEBUG] API response keys: dict_keys(['error']) [DEBUG] image_results count: 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions