From 12238c47081cd789c09e6677495cca3d31356cf1 Mon Sep 17 00:00:00 2001 From: jwansek Date: Tue, 13 Feb 2024 16:36:24 +0000 Subject: Started on devcontainer stuff --- temp.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 temp.py (limited to 'temp.py') diff --git a/temp.py b/temp.py new file mode 100644 index 0000000..e61fe38 --- /dev/null +++ b/temp.py @@ -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 -- cgit v1.2.3