Spaces:
Sleeping
Sleeping
Update app.py
Browse files5 unmodified lines6789101112131114151617185 unmodified lines
# Write instructions for these inputsuploaded_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 questions based on the text")answer_protocol = st.text_input("Provide instructions for how answers should be generated", "Write answers based on the text")
sentence_chunks = st.number_input("Insert an integer for levels of quantization:", value=2, step=1, min_value=1, max_value=3)sentence_chunks = st.number_input("Number sentences per Q/A pair", value=2, step=1, min_value=1, max_value=3)
openai_api_key = st.text_input("Enter your OpenAI API key", type="password")
submit = st.button("Submit")app.py+6-1