mirror of
https://github.com/likelovewant/ollama-for-amd.git
synced 2025-12-23 15:08:27 +00:00
4
examples/with-langchain-python-simplegenerate/main.py
Normal file
4
examples/with-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