lfoppiano commited on
Commit
6eee84d
1 Parent(s): d428544
Files changed (1) hide show
  1. streamlit_app.py +7 -6
streamlit_app.py CHANGED
@@ -425,12 +425,13 @@ with right_column:
425
 
426
  text_response = None
427
  if mode == "embeddings":
428
- with st.spinner("Fetching the relevant context..."):
429
- text_response, coordinates = st.session_state['rqa'][model].query_storage(
430
- question,
431
- st.session_state.doc_id,
432
- context_size=context_size
433
- )
 
434
  elif mode == "llm":
435
  with placeholder:
436
  with st.spinner("Generating LLM response..."):
 
425
 
426
  text_response = None
427
  if mode == "embeddings":
428
+ with placeholder:
429
+ with st.spinner("Fetching the relevant context..."):
430
+ text_response, coordinates = st.session_state['rqa'][model].query_storage(
431
+ question,
432
+ st.session_state.doc_id,
433
+ context_size=context_size
434
+ )
435
  elif mode == "llm":
436
  with placeholder:
437
  with st.spinner("Generating LLM response..."):