mirror of
https://github.com/ollama/ollama.git
synced 2025-05-19 17:10:05 +02:00
7 lines
143 B
Python
7 lines
143 B
Python
from langchain.llms import Ollama
|
|
|
|
input = input("What is your question?")
|
|
llm = Ollama(model="llama3.1")
|
|
res = llm.predict(input)
|
|
print (res)
|