File size: 720 Bytes
32a98d6
 
1c8fe0b
 
 
 
 
 
a1543e8
32a98d6
 
b1ed94b
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import streamlit as st

st.set_page_config(
    page_title="ChatbotGuide",
    layout="wide",
)


st.title("Chatbot Guide")
# Write instructions for input PDF

# Write instructions for these inputs
uploaded_files = st.file_uploader("Upload PDFs Here", type="pdf")
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.slider("Number of sentences per question/answer pair", min_value=1, max_value=3, value=2, step=1)
openai_api_key = st.text_input("Enter your OpenAI API key", type="password")