mirror of
https://github.com/ollama/ollama.git
synced 2025-08-03 17:12:46 +02:00
simple gen to simple
Signed-off-by: Matt Williams <m@technovangelist.com>
This commit is contained in:
4
examples/langchain-python-simple/main.py
Normal file
4
examples/langchain-python-simple/main.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from langchain.llms import Ollama
|
||||
llm = Ollama(model="llama2")
|
||||
res = llm.predict("hello")
|
||||
print (res)
|
Reference in New Issue
Block a user