ZarinT commited on
Commit
d1fa96d
Β·
verified Β·
1 Parent(s): 333eda9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -257,11 +257,12 @@ def main():
257
  if "chat_history" not in st.session_state:
258
  st.session_state.chat_history = []
259
 
260
- st.header("Chat with MODTRAN Documents πŸ“„πŸ€–")
261
 
262
  # Preload the document once when app starts
263
  if not st.session_state.chat_ready:
264
  with st.spinner("Loading MODTRAN document..."):
 
265
  st.session_state.agent = initialize_chatbot_agent()
266
  st.session_state.chat_ready = True
267
  st.success("MODTRAN User Manual loaded successfully!")
 
257
  if "chat_history" not in st.session_state:
258
  st.session_state.chat_history = []
259
 
260
+ st.header("Chat with MODTRAN Documents πŸ“„")
261
 
262
  # Preload the document once when app starts
263
  if not st.session_state.chat_ready:
264
  with st.spinner("Loading MODTRAN document..."):
265
+ preload_modtran_document()
266
  st.session_state.agent = initialize_chatbot_agent()
267
  st.session_state.chat_ready = True
268
  st.success("MODTRAN User Manual loaded successfully!")