mirror of https://github.com/ollama/ollama.git
5 lines
102 B
Python
5 lines
102 B
Python
|
|
from langchain.llms import Ollama
|
||
|
|
llm = Ollama(model="llama2")
|
||
|
|
res = llm.predict("hello")
|
||
|
|
print (res)
|