diff --git a/streamlit_app.py b/streamlit_app.py index c633573..31eebe4 100644 --- a/streamlit_app.py +++ b/streamlit_app.py @@ -266,7 +266,7 @@ def play_old_messages(): st.markdown( ":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.") -uploaded_file = st.file_uploader("Upload an article", + uploaded_file = st.file_uploader("Upload an article", type=("pdf", "txt"), on_change=new_file, disabled=st.session_state['model'] is not None and st.session_state['model'] not in