Spaces:
Sleeping
Sleeping
Update app.py
Browse files127 unmodified lines12812913013113213313445 unmodified lines180181182183184185186187186188189188189190190191192193194195196197198199200201202127 unmodified lines
if selected_app == "1) Scrape PDFs": st.markdown("### On this page, you'll scape the information that you want your chatbot to know") st.divider() st.write("1. Go to your organizations webpage") image = Image.open('Example1.png')45 unmodified lines else: st.markdown("### On this page, you'll convert your text into potential questions that your chatbot may be asked and their corresponding answers.") st.divider() st.write("1. Upload your PDFs here") with st.expander("Explain"): st.write("You can upload more than one PDF at a time, but don't do too many at once.") uploaded_files = st.file_uploader("", type="pdf", accept_multiple_files=True) uploaded_files = st.file_uploader(type="pdf", accept_multiple_files=True) st.divider() 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")
st.write("2. Provide instructions for how questions should be generated.") with st.expander("Explain"): st.write("You can upload more than one PDF at a time, but don't do too many at once.") question_protocol = st.text_input("", "Write a question based on the text")
st.write("3. Provide instructions for how answers should be generated") with st.expander("Explain"): st.write("You can upload more than one PDF at a time, but don't do too many at once.") answer_protocol = st.text_input("", "Write an answer based on the text") sentence_chunks = st.number_input("Number sentences per Q/A pair", value=2, step=1, min_value=1, max_value=3) app.py+13-4