drguilhermeapolinario commited on
Commit
407b553
·
verified ·
1 Parent(s): e784b0c

Update views/rag_med.py

Browse files
Files changed (1) hide show
  1. views/rag_med.py +5 -3
views/rag_med.py CHANGED
@@ -9,9 +9,7 @@ from sentence_transformers import SentenceTransformer
9
  import pickle
10
  from prompt_template import prompt
11
 
12
- # Initialize the messages list in the session state
13
- if "messages" not in st.session_state:
14
- st.session_state.messages = []
15
 
16
  STYLE = "static/style.css"
17
 
@@ -251,6 +249,10 @@ with col4:
251
  # Interface do chat
252
  st.title("Chat Médico Baseado em Query")
253
 
 
 
 
 
254
  # Exibe as mensagens já enviadas
255
  for message in st.session_state.messages:
256
  with st.chat_message(message["role"]):
 
9
  import pickle
10
  from prompt_template import prompt
11
 
12
+
 
 
13
 
14
  STYLE = "static/style.css"
15
 
 
249
  # Interface do chat
250
  st.title("Chat Médico Baseado em Query")
251
 
252
+ # Initialize the messages list in the session state
253
+ if "messages" not in st.session_state:
254
+ st.session_state.messages = []
255
+
256
  # Exibe as mensagens já enviadas
257
  for message in st.session_state.messages:
258
  with st.chat_message(message["role"]):