File size: 296 Bytes
745face
 
4ade382
745face
4ade382
745face
 
 
 
06bbd1d
745face
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import requests
import json

reqUrl = "http://localhost:11434/api/pull"

headersList = {
 "Accept": "*/*",
 "Content-Type": "application/json" 
}

payload = json.dumps({
  "name": "gemma:7b"
})

response = requests.request("POST", reqUrl, data=payload,  headers=headersList)

print(response.text)