aboutsummaryrefslogtreecommitdiffstats
path: root/temp.py
blob: e61fe387e64a0af40e830510710e4430a836af24 (plain)
1
2
3
4
5
6
7
8
import ollama

with open("Modelfile", "r") as f:
    ollama.create(model = "temp", modelfile= f.read())

print(ollama.generate(model='temp', prompt='What\'s the weather like right now in London?', options={"stop": ["\nThought:"]}))

ollama.delete("temp")