Spaces:
Running
Running
cosmetics
Browse files- streamlit_app.py +9 -7
streamlit_app.py
CHANGED
@@ -290,12 +290,14 @@ with right_column:
|
|
290 |
st.markdown(
|
291 |
":warning: Do not upload sensitive data. We **temporarily** store text from the uploaded PDF documents solely for the purpose of processing your request, and we **do not assume responsibility** for any subsequent use or handling of the data submitted to third parties LLMs.")
|
292 |
|
293 |
-
uploaded_file = st.file_uploader(
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
|
|
|
|
299 |
|
300 |
question = st.chat_input(
|
301 |
"Ask something about the article",
|
@@ -482,7 +484,7 @@ with left_column:
|
|
482 |
input=st.session_state['binary'],
|
483 |
width=600,
|
484 |
height=800,
|
485 |
-
annotation_outline_size=
|
486 |
annotations=st.session_state['annotations'],
|
487 |
rendering='unwrap' if st.session_state['pdf_rendering'] == 'PDF.JS' else 'legacy_embed'
|
488 |
)
|
|
|
290 |
st.markdown(
|
291 |
":warning: Do not upload sensitive data. We **temporarily** store text from the uploaded PDF documents solely for the purpose of processing your request, and we **do not assume responsibility** for any subsequent use or handling of the data submitted to third parties LLMs.")
|
292 |
|
293 |
+
uploaded_file = st.file_uploader(
|
294 |
+
"Upload an article",
|
295 |
+
type=("pdf", "txt"),
|
296 |
+
on_change=new_file,
|
297 |
+
disabled=st.session_state['model'] is not None and st.session_state['model'] not in
|
298 |
+
st.session_state['api_keys'],
|
299 |
+
help="The full-text is extracted using Grobid."
|
300 |
+
)
|
301 |
|
302 |
question = st.chat_input(
|
303 |
"Ask something about the article",
|
|
|
484 |
input=st.session_state['binary'],
|
485 |
width=600,
|
486 |
height=800,
|
487 |
+
annotation_outline_size=1,
|
488 |
annotations=st.session_state['annotations'],
|
489 |
rendering='unwrap' if st.session_state['pdf_rendering'] == 'PDF.JS' else 'legacy_embed'
|
490 |
)
|