KeshavRa commited on
Commit
b1ed94b
·
verified ·
1 Parent(s): 32a98d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -2,3 +2,9 @@ import streamlit as st
2
 
3
  # Write instructions for input PDF
4
 
 
 
 
 
 
 
 
2
 
3
  # Write instructions for input PDF
4
 
5
+ # Write instructions for these inputs
6
+ uploaded_files = st.file_uploader("Upload PDFs Here", type="pdf")
7
+ question_protocol = st.text_input("Provide instructions for how questions should be generated", "Write questions based on the text")
8
+ answer_protocol = st.text_input("Provide instructions for how answers should be generated", "Write answers based on the text")
9
+ sentence_chunks = st.slider("Number of sentences per question/answer pair", min_value=1, max_value=3, value=2, step=1)
10
+ openai_api_key = st.text_input("Enter your OpenAI API key", type="password")