only 2 files
This commit is contained in:
parent
7ea6594fda
commit
46396b6301
4
app.py
4
app.py
@ -9,8 +9,10 @@ if 'messages' not in st.session_state:
|
|||||||
for message in st.session_state.messages:
|
for message in st.session_state.messages:
|
||||||
st.chat_message(message['role']).markdown(message['content'])
|
st.chat_message(message['role']).markdown(message['content'])
|
||||||
|
|
||||||
|
|
||||||
prompt = st.chat_input("Ask your question here")
|
prompt = st.chat_input("Ask your question here")
|
||||||
|
|
||||||
if prompt:
|
if prompt:
|
||||||
st.chat_message('user').markdown(prompt)
|
st.chat_message('user').markdown(prompt)
|
||||||
st.session_state.messages.append({'role':'user', 'content':prompt})
|
st.session_state.messages.append({'role':'user', 'content':prompt})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user