prompt: | |
messages: | |
- role: user | |
content: | |
- type: image_url | |
image_url: | |
url: "{image_url}" | |
- type: text | |
text: "Please provide the bounding box coordinate of the region this sentence describes: <ref>{region_to_detect}</ref>" | |
# Optional: You can list the input variables here to enable validation of the template | |
# This follows the LangChain PromptTemplate convention: https://api.python.langchain.com/en/latest/core/prompts/langchain_core.prompts.prompt.PromptTemplate.html | |
input_variables: | |
- image_url | |
- region_to_detect | |
# Additional metadata | |
metadata: | |
model: https://huggingface.co/collections/OpenGVLab/internvl-20-667d3961ab5eb12c7ed1463e | |