mirror of
https://github.com/ollama/ollama-python.git
synced 2026-01-13 21:57:16 +08:00
examples: add pull progress readme
This commit is contained in:
parent
89c4b54316
commit
81e253997d
9
examples/pull-progress/README.md
Normal file
9
examples/pull-progress/README.md
Normal file
@ -0,0 +1,9 @@
|
||||
# pull-progress
|
||||
|
||||
This example emulates `ollama pull` using the Python library and [`tqdm`](https://tqdm.github.io/).
|
||||
|
||||
## Setup
|
||||
|
||||
```shell
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
@ -1,5 +1,3 @@
|
||||
# pip install tqdm
|
||||
|
||||
from tqdm import tqdm
|
||||
from ollama import pull
|
||||
|
||||
|
||||
1
examples/pull-progress/requirements.txt
Normal file
1
examples/pull-progress/requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
tqdm==4.66.1
|
||||
Loading…
Reference in New Issue
Block a user