from langchain.llms import Ollama

input = input("What is your question?")
llm = Ollama(model="llama2")
res = llm.predict(input)
print (res)

langchain.llms.Ollama
[((81, 103), 'langchain.llms.Ollama', 'Ollama', ([], {'model': '"""llama2"""'}), "(model='llama2')\n", (87, 103), False, 'from langchain.llms import Ollama\n')]