mirror of
https://github.com/ollama/ollama.git
synced 2026-04-26 10:45:57 +02:00
4
examples/langchain-python-simplegenerate/main.py
Normal file
4
examples/langchain-python-simplegenerate/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