Spaces:
Running
Running
Update app.py
Browse files
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!")
|