This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import streamlit as st | |
from langchain.llms.ollama import Ollama | |
llm = Ollama(model='deepseek-r1:1.5b') | |
if "messages" not in st.session_state: | |
st.session_state.messages = [] | |
st.title('Deepseek with Streamlit') | |
st.write('Using LangChain, Ollama and streamlit. The ollama model is already installed locally on my machine') |