diff options
Diffstat (limited to 'temp.py')
-rw-r--r-- | temp.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -0,0 +1,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")
\ No newline at end of file |