Spaces:
Sleeping
Sleeping
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") | |