From 7ea6594fda3843b65fe1c1e8d5f7761c82880d25 Mon Sep 17 00:00:00 2001 From: Pranshav Lakhia Date: Sat, 12 Oct 2024 16:58:42 -0400 Subject: [PATCH] second try at front end because of sandip --- .idea/.gitignore | 3 +++ .idea/inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/maargdarshak.iml | 8 ++++++++ .idea/misc.xml | 7 +++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ app.py | 16 ++++++++++++++++ 7 files changed, 54 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/maargdarshak.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 app.py 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