{"id":20058695,"url":"https://github.com/roboflow/cog-vlm-client","last_synced_at":"2025-05-05T14:31:32.791Z","repository":{"id":213295010,"uuid":"733494547","full_name":"roboflow/cog-vlm-client","owner":"roboflow","description":"Simple CogVLM client script","archived":false,"fork":false,"pushed_at":"2023-12-20T15:07:27.000Z","size":8,"stargazers_count":14,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-05T00:02:23.351Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roboflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-19T13:03:53.000Z","updated_at":"2024-05-29T06:17:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"1b0acc6e-4c6c-4c20-a7af-480dea302e27","html_url":"https://github.com/roboflow/cog-vlm-client","commit_stats":null,"previous_names":["roboflow/cog-vlm-client"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboflow%2Fcog-vlm-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboflow%2Fcog-vlm-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboflow%2Fcog-vlm-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboflow%2Fcog-vlm-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roboflow","download_url":"https://codeload.github.com/roboflow/cog-vlm-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252514993,"owners_count":21760484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T13:03:14.433Z","updated_at":"2025-05-05T14:31:32.784Z","avatar_url":"https://github.com/roboflow.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cog-vlm-client\n\n## 👋 hello\n\nThis script is designed to send an image and a prompt to \n[inference](https://github.com/roboflow/inference) server running the \n[CogVLM](https://github.com/THUDM/CogVLM) model.\n\n## 💻 install\n\n- clone repository and navigate to root directory\n\n    ```bash\n    git clone https://github.com/roboflow/cog-vlm-client.git\n    cd cog-vlm-client\n    ```\n  \n- setup python environment and activate it [optional]\n\n    ```bash\n    python3 -m venv venv\n    source venv/bin/activate\n    ```\n  \n- install required dependencies\n\n    ```bash\n    pip install -r requirements.txt\n    ```\n  \n- download example image\n\n  ```python\n  ./setup.sh\n  ```\n\n## 🛠️ script arguments\n\n- `--image`: Specifies the path to the image file that will be sent to the inference \nserver.\n- `--prompt`: The prompt text that accompanies the image in the request to the CogVLM \nmodel.\n- `--port` (optional): The port number of the API. Defaults to `9001` if not specified.\n- `--address` (optional): The address of the API. Defaults to `http://localhost` if not\nspecified.\n- `--api_key` (optional): The Roboflow API key used for authentication with the API. If \nnot provided, the script will look for the `ROBOFLOW_API_KEY` environment variable.\n\n## ⚙️ run example\n\n```bash\npython script.py --image \"data/tire.jpg\" --prompt \"read serial number from tire\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboflow%2Fcog-vlm-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froboflow%2Fcog-vlm-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboflow%2Fcog-vlm-client/lists"}