Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Jun 24, 2024
1 parent d428544 commit 6eee84d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,13 @@ def generate_color_gradient(num_elements):

text_response = None
if mode == "embeddings":
with st.spinner("Fetching the relevant context..."):
text_response, coordinates = st.session_state['rqa'][model].query_storage(
question,
st.session_state.doc_id,
context_size=context_size
)
with placeholder:
with st.spinner("Fetching the relevant context..."):
text_response, coordinates = st.session_state['rqa'][model].query_storage(
question,
st.session_state.doc_id,
context_size=context_size
)
elif mode == "llm":
with placeholder:
with st.spinner("Generating LLM response..."):
Expand Down

0 comments on commit 6eee84d

Please sign in to comment.