TheBobBob commited on
Commit
7db6b5f
·
verified ·
1 Parent(s): eee0ea3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -261,7 +261,7 @@ def generate_response(db, query_text, previous_context):
261
 
262
  return full_response
263
 
264
- def streamlit_app(db):
265
  st.title("BioModelsRAG")
266
 
267
  search_str = st.text_input("Enter search query:")
@@ -298,7 +298,7 @@ def streamlit_app(db):
298
 
299
  # Cache the chat messages
300
  @st.cache_resource
301
- def get_messages(_db):
302
  if "messages" not in st.session_state:
303
  st.session_state.messages = []
304
  return st.session_state.messages
@@ -327,4 +327,4 @@ def streamlit_app(db):
327
  st.session_state.messages.append({"role": "assistant", "content": response})
328
 
329
  if __name__ == "__main__":
330
- streamlit_app(db)
 
261
 
262
  return full_response
263
 
264
+ def streamlit_app():
265
  st.title("BioModelsRAG")
266
 
267
  search_str = st.text_input("Enter search query:")
 
298
 
299
  # Cache the chat messages
300
  @st.cache_resource
301
+ def get_messages():
302
  if "messages" not in st.session_state:
303
  st.session_state.messages = []
304
  return st.session_state.messages
 
327
  st.session_state.messages.append({"role": "assistant", "content": response})
328
 
329
  if __name__ == "__main__":
330
+ streamlit_app()