Vela commited on
Commit
847aabf
·
1 Parent(s): 2787824

modified messages

Browse files
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
  streamlit
2
  pandas
3
- groq
 
 
1
  streamlit
2
  pandas
3
+ groq
4
+ scikit-learn
src/app.py CHANGED
@@ -1,5 +1,8 @@
1
  import streamlit as st
2
  from streamlit_app import model,home_page
 
 
 
3
 
4
 
5
  def main():
@@ -12,9 +15,9 @@ def main():
12
 
13
  if username:
14
 
15
- home_page.display_chat()
16
-
17
  home_page.handle_user_input()
18
 
 
 
19
  if __name__ == "__main__":
20
  main()
 
1
  import streamlit as st
2
  from streamlit_app import model,home_page
3
+ import numpy as np
4
+ from sklearn.metrics.pairwise import cosine_similarity
5
+ import time
6
 
7
 
8
  def main():
 
15
 
16
  if username:
17
 
 
 
18
  home_page.handle_user_input()
19
 
20
+ home_page.display_chat()
21
+
22
  if __name__ == "__main__":
23
  main()
src/streamlit_app/__pycache__/home_page.cpython-312.pyc CHANGED
Binary files a/src/streamlit_app/__pycache__/home_page.cpython-312.pyc and b/src/streamlit_app/__pycache__/home_page.cpython-312.pyc differ
 
src/streamlit_app/home_page.py CHANGED
@@ -2,8 +2,6 @@ import streamlit as st
2
  from streamlit_app import model
3
  from utils import logger
4
 
5
- if "messages" not in st.session_state:
6
- st.session_state.messages = []
7
 
8
  def page_config():
9
  st.set_page_config(page_title="Physio Assist", layout="wide")
@@ -32,6 +30,8 @@ def get_or_greet_user_name():
32
 
33
  def display_chat():
34
  logger.log("info","Displaying the chat history.")
 
 
35
  for message in st.session_state.messages:
36
  with st.chat_message(message["role"]):
37
  st.markdown(message["content"])
 
2
  from streamlit_app import model
3
  from utils import logger
4
 
 
 
5
 
6
  def page_config():
7
  st.set_page_config(page_title="Physio Assist", layout="wide")
 
30
 
31
  def display_chat():
32
  logger.log("info","Displaying the chat history.")
33
+ if "messages" not in st.session_state:
34
+ st.session_state.messages = []
35
  for message in st.session_state.messages:
36
  with st.chat_message(message["role"]):
37
  st.markdown(message["content"])