aboutsummaryrefslogtreecommitdiffstats
path: root/temp.py
diff options
context:
space:
mode:
Diffstat (limited to 'temp.py')
-rw-r--r--temp.py8
1 files changed, 8 insertions, 0 deletions
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