Spaces:
Running
Running
cosmetics
Browse files- 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
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 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..."):
|