of_LLms / main.py
ka1kuk's picture
Update main.py
745face verified
raw
history blame
296 Bytes
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)