Skip to content

Commit

Permalink
change sliders when paragraphs are extracted
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Dec 19, 2023
1 parent 46a94d5 commit 17c679c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,14 @@ def play_old_messages():
chunk_size = st.slider("Chunks size", -1, 2000, value=-1,
help="Size of chunks in which the document is partitioned",
disabled=uploaded_file is not None)
context_size = st.slider("Context size", 3, 10, value=4,
help="Number of chunks to consider when answering a question",
if chunk_size == -1:
context_size = st.slider("Context size", 3, 20, value=10,
help="Number of paragraphs to consider when answering a question",
disabled=not uploaded_file)
else:
context_size = st.slider("Context size", 3, 10, value=4,
help="Number of chunks to consider when answering a question",
disabled=not uploaded_file)

st.session_state['ner_processing'] = st.checkbox("Identify materials and properties.")
st.markdown(
Expand Down

0 comments on commit 17c679c

Please sign in to comment.