Skip to content

Instantly share code, notes, and snippets.

@wilsonsilva
Created April 17, 2024 09:21
Show Gist options
  • Save wilsonsilva/57460fd6096bbf85b60efa4189d83e65 to your computer and use it in GitHub Desktop.
Save wilsonsilva/57460fd6096bbf85b60efa4189d83e65 to your computer and use it in GitHub Desktop.
Ollama image prompt
curl http://localhost:11434/api/generate -d '{
"model": "llava:v1.6",
"prompt": "What is in this picture?",
"images": ["'"$(base64 --input my_image.jpeg)"'"]
}'
curl http://localhost:11434/api/generate -d '{
"model": "llava:v1.6",
"prompt": "Extract all the text in this picture",
"stream": false,
"images": ["'"$(base64 --input my_image.jpeg)"'"]
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment