Update app.py
Browse files
app.py
CHANGED
@@ -11,12 +11,12 @@ st.info("Check out more info on DC Parks & Rec at our [website](https://dpr.dc.g
|
|
11 |
|
12 |
if "messages" not in st.session_state.keys(): # Initialize the chat messages history
|
13 |
st.session_state.messages = [
|
14 |
-
{"role": "assistant", "content": "Ask me a question about
|
15 |
]
|
16 |
|
17 |
@st.cache_resource(show_spinner=False)
|
18 |
def load_data():
|
19 |
-
with st.spinner(text="Loading and indexing the
|
20 |
reader = SimpleDirectoryReader(input_dir="./data", recursive=True)
|
21 |
docs = reader.load_data()
|
22 |
service_context = ServiceContext.from_defaults(llm=OpenAI(model="gpt-3.5-turbo", temperature=0.5, system_prompt="You are an expert on the Streamlit Python library and your job is to answer technical questions. Assume that all questions are related to the Streamlit Python library. Keep your answers technical and based on facts – do not hallucinate features."))
|
|
|
11 |
|
12 |
if "messages" not in st.session_state.keys(): # Initialize the chat messages history
|
13 |
st.session_state.messages = [
|
14 |
+
{"role": "assistant", "content": "Ask me a question about the HUD Audit Guide - Chapter 6 - Ginnie Mae Issuers of Mortgage-Backed Securities Audit Guidance!"}
|
15 |
]
|
16 |
|
17 |
@st.cache_resource(show_spinner=False)
|
18 |
def load_data():
|
19 |
+
with st.spinner(text="Loading and indexing the HUD Audit Guide – hang tight! This should take 1-2 minutes."):
|
20 |
reader = SimpleDirectoryReader(input_dir="./data", recursive=True)
|
21 |
docs = reader.load_data()
|
22 |
service_context = ServiceContext.from_defaults(llm=OpenAI(model="gpt-3.5-turbo", temperature=0.5, system_prompt="You are an expert on the Streamlit Python library and your job is to answer technical questions. Assume that all questions are related to the Streamlit Python library. Keep your answers technical and based on facts – do not hallucinate features."))
|