Skip to content

Commit

Permalink
remove gpt model dropdown and replace sidebar with Conversation Histo…
Browse files Browse the repository at this point in the history
…ry stub
  • Loading branch information
Quantisan committed Sep 26, 2023
1 parent 3406f72 commit cc42a96
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mind_palace/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

openai.api_key = st.secrets.openai_key
xml_dir = "./resources/xmls/12-pdfs-from-steve-aug-22/"
gpt_model = "gpt-3.5-turbo"

st.set_page_config(page_title="Chatting with Steve's PDFs")
st.title("Chat with Steve's 12 PDFs 💬🦙")

selected_model = st.sidebar.selectbox(
"Choose your GPT model", ("gpt-3.5-turbo", "gpt-4"), index=0
)
with st.sidebar:
st.markdown("Conversation History")
st.text("Coming soon...")


if "messages" not in st.session_state.keys(): # Initialize the chat messages history
st.session_state.messages = [
Expand All @@ -30,7 +32,7 @@ def load_index(model):
return vector_index


vector_index = load_index(selected_model)
vector_index = load_index(gpt_model)
query_engine = CitationQueryEngine.from_args(index=vector_index, verbose=True)

if prompt := st.chat_input(
Expand Down

0 comments on commit cc42a96

Please sign in to comment.