File: generate.py

package info (click to toggle)
ollama-python 0.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 376 kB
  • sloc: python: 3,056; makefile: 5
file content (4 lines) | stat: -rw-r--r-- 111 bytes parent folder | download
1
2
3
4
from ollama import generate

response = generate('gemma3', 'Why is the sky blue?')
print(response['response'])