diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/maargdarshak.iml b/.idea/maargdarshak.iml new file mode 100644 index 0000000..d0876a7 --- /dev/null +++ b/.idea/maargdarshak.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..9de2865 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..0e4d698 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app.py b/app.py new file mode 100644 index 0000000..fc583dd --- /dev/null +++ b/app.py @@ -0,0 +1,16 @@ +import streamlit as st +import langchain + +st.title('Ask maargdarshak') + +if 'messages' not in st.session_state: + st.session_state.messages = [] + +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