ollama/examples/python
2023-07-08 17:40:05 -04:00
..
main.py examples: add basic python example 2023-07-08 17:40:05 -04:00
README.md examples: add basic python example 2023-07-08 17:40:05 -04:00

Python

This is a simple example of calling the Ollama api from a python app.

First, download a model:

curl -L https://huggingface.co/TheBloke/orca_mini_3B-GGML/resolve/main/orca-mini-3b.ggmlv3.q4_1.bin -o orca.bin

Then run it using the example script. You'll need to have Ollama running on your machine.

python3 main.py orca.bin