From 46396b630190abc70bef14522fdcd8814c670e64 Mon Sep 17 00:00:00 2001 From: Pranshav Lakhia Date: Sat, 12 Oct 2024 20:12:09 -0400 Subject: [PATCH] only 2 files --- app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index fc583dd..a76e1ef 100644 --- a/app.py +++ b/app.py @@ -9,8 +9,10 @@ if 'messages' not in st.session_state: for message in st.session_state.messages: st.chat_message(message['role']).markdown(message['content']) + prompt = st.chat_input("Ask your question here") if prompt: st.chat_message('user').markdown(prompt) - st.session_state.messages.append({'role':'user', 'content':prompt}) \ No newline at end of file + st.session_state.messages.append({'role':'user', 'content':prompt}) +