Spaces:
Sleeping
Sleeping
Update app.py
Browse files112 unmodified lines113114115116117118119120121122123124125126112 unmodified linesst.success(st.download_button(label="Download Q/A pairs as CSV",data=csv,file_name='questions_answers.csv',mime='text/csv',))uploaded_files = st.file_uploader("Upload PDFs Here", type="pdf", accept_multiple_files=True)st.success(f"{len(uploaded_files)} document(s) loaded...")question_protocol = st.text_input("Provide instructions for how questions should be generated", "Write a question based on the text")answer_protocol = st.text_input("Provide instructions for how answers should be generated", "Write an answer based on the text")112 unmodified lines113114115116117118119120121122123124125112 unmodified linesst.success(st.download_button(label="Download Q/A pairs as CSV",data=st.session_state.success,file_name='questions_answers.csv',mime='text/csv',))uploaded_files = st.file_uploader("Upload PDFs Here", type="pdf", accept_multiple_files=True)question_protocol = st.text_input("Provide instructions for how questions should be generated", "Write a question based on the text")answer_protocol = st.text_input("Provide instructions for how answers should be generated", "Write an answer based on the text")
app.py+1-2