Ollama Chat¶
Name |
URL |
---|---|
Ollama |
|
Ollama Python |
import ollama
import streamlit as st
Call Ollama
question = st.text_input("Question")
if st.button(':thinking_face: Call LLama'):
response = ollama.chat(model='llama3.2', messages=[
{
'role': 'user',
'content': question,
},
])
st.write(response.message.content)