ZarinT commited on
Commit
fc0fae1
Β·
verified Β·
1 Parent(s): fc5e45c

Rename modtran_app.py to app.py

Browse files
Files changed (1) hide show
  1. modtran_app.py β†’ app.py +4 -7
modtran_app.py β†’ app.py RENAMED
@@ -93,7 +93,7 @@ if "feedback_log" not in st.session_state:
93
  def preload_modtran_document():
94
  global vectorstore_global
95
  embeddings = GeminiEmbeddings()
96
- st.session_state.vectorstore = FAISS.load_local("modtran_vectorstore", embeddings, allow_dangerous_deserialization=True)
97
  set_global_vectorstore(st.session_state.vectorstore)
98
  st.session_state.chat_ready = True
99
 
@@ -366,10 +366,7 @@ def main():
366
  st.session_state.last_answered_question = ""
367
 
368
  st.markdown("""
369
- <h2>Chat with MODTRAN Documents πŸ“„</h2>
370
- <a href="https://drive.google.com/file/d/1XwPKpooLRhq9C1-ESXV3HiCnmJJxdN9-/view?usp=sharing" target="_blank" style="text-decoration: none; font-size: 0.9rem;">
371
- View MODTRAN 6 User's Manual
372
- </a>
373
  """, unsafe_allow_html=True)
374
 
375
  # Inject custom CSS for chat bubbles
@@ -416,11 +413,11 @@ def main():
416
 
417
  # Load vectorstore and chatbot agent
418
  if not st.session_state.chat_ready:
419
- with st.spinner("Loading MODTRAN document..."):
420
  preload_modtran_document()
421
  st.session_state.agent = initialize_chatbot_agent()
422
  st.session_state.chat_ready = True
423
- st.success("MODTRAN User Manual loaded successfully!")
424
 
425
  # Render all previous Q&A in chat format
426
  st.markdown('<div class="chat-container">', unsafe_allow_html=True)
 
93
  def preload_modtran_document():
94
  global vectorstore_global
95
  embeddings = GeminiEmbeddings()
96
+ st.session_state.vectorstore = FAISS.load_local("monte_vectorstore", embeddings, allow_dangerous_deserialization=True)
97
  set_global_vectorstore(st.session_state.vectorstore)
98
  st.session_state.chat_ready = True
99
 
 
366
  st.session_state.last_answered_question = ""
367
 
368
  st.markdown("""
369
+ <h2>Chat with MONTE Documents πŸ“„</h2>
 
 
 
370
  """, unsafe_allow_html=True)
371
 
372
  # Inject custom CSS for chat bubbles
 
413
 
414
  # Load vectorstore and chatbot agent
415
  if not st.session_state.chat_ready:
416
+ with st.spinner("Loading Monte documents..."):
417
  preload_modtran_document()
418
  st.session_state.agent = initialize_chatbot_agent()
419
  st.session_state.chat_ready = True
420
+ st.success("Monte Docuemnts loaded successfully!")
421
 
422
  # Render all previous Q&A in chat format
423
  st.markdown('<div class="chat-container">', unsafe_allow_html=True)