Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,13 @@ st.title("Chatbot Guide")
|
|
6 |
|
7 |
# Write instructions for these inputs
|
8 |
uploaded_files = st.file_uploader("Upload PDFs Here", type="pdf", accept_multiple_files=True)
|
|
|
|
|
9 |
question_protocol = st.text_input("Provide instructions for how questions should be generated", "Write questions based on the text")
|
10 |
answer_protocol = st.text_input("Provide instructions for how answers should be generated", "Write answers based on the text")
|
11 |
-
|
|
|
|
|
12 |
openai_api_key = st.text_input("Enter your OpenAI API key", type="password")
|
|
|
13 |
submit = st.button("Submit")
|
|
|
6 |
|
7 |
# Write instructions for these inputs
|
8 |
uploaded_files = st.file_uploader("Upload PDFs Here", type="pdf", accept_multiple_files=True)
|
9 |
+
st.success(f"{len(uploaded_files)} document(s) loaded...")
|
10 |
+
|
11 |
question_protocol = st.text_input("Provide instructions for how questions should be generated", "Write questions based on the text")
|
12 |
answer_protocol = st.text_input("Provide instructions for how answers should be generated", "Write answers based on the text")
|
13 |
+
|
14 |
+
sentence_chunks = st.number_input("Number sentences per Q/A pair", value=2, step=1, min_value=1, max_value=3)
|
15 |
+
|
16 |
openai_api_key = st.text_input("Enter your OpenAI API key", type="password")
|
17 |
+
|
18 |
submit = st.button("Submit")
|