Spaces:
Sleeping
Sleeping
disable chunk size selection before file is uploaded
Browse files- streamlit_app.py +1 -1
streamlit_app.py
CHANGED
|
@@ -193,7 +193,7 @@ with st.sidebar:
|
|
| 193 |
"paragraphs relevant to the question in the paper.")
|
| 194 |
chunk_size = st.slider("Chunks size", 100, 2000, value=250,
|
| 195 |
help="Size of chunks in which the document is partitioned",
|
| 196 |
-
disabled=not
|
| 197 |
context_size = st.slider("Context size", 3, 10, value=4,
|
| 198 |
help="Number of chunks to consider when answering a question",
|
| 199 |
disabled=not uploaded_file)
|
|
|
|
| 193 |
"paragraphs relevant to the question in the paper.")
|
| 194 |
chunk_size = st.slider("Chunks size", 100, 2000, value=250,
|
| 195 |
help="Size of chunks in which the document is partitioned",
|
| 196 |
+
disabled=uploaded_file is not None)
|
| 197 |
context_size = st.slider("Context size", 3, 10, value=4,
|
| 198 |
help="Number of chunks to consider when answering a question",
|
| 199 |
disabled=not uploaded_file)
|