Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -183,12 +183,13 @@ if selected_app == "2) Create CSVs":
|
|
183 |
st.divider()
|
184 |
|
185 |
st.write("1. Upload your PDFs here")
|
|
|
186 |
with st.expander("Explain"):
|
187 |
st.write("You can upload more than one PDF at a time, but don't do too many at once.")
|
188 |
-
uploaded_files = st.file_uploader("", type="pdf", accept_multiple_files=True)
|
189 |
st.divider()
|
190 |
|
191 |
st.write("2. Enter your OpenAI API key")
|
|
|
192 |
with st.expander("Explain"):
|
193 |
st.write("Your OpenAI API key allows you to use ChatGPT, the basis of your chatbot. Don't have one? Here's how to get one:")
|
194 |
st.markdown("""
|
@@ -200,7 +201,6 @@ if selected_app == "2) Create CSVs":
|
|
200 |
6. In the top right, click 'Create new secret key' and save the key to a secure place (you won't have access later)
|
201 |
""")
|
202 |
st.write("If you're a nonprofit in need of funding, reach out to me at [email protected] to request a key.")
|
203 |
-
openai_api_key = st.text_input("", type="password")
|
204 |
st.divider()
|
205 |
|
206 |
submit = st.button("Submit")
|
|
|
183 |
st.divider()
|
184 |
|
185 |
st.write("1. Upload your PDFs here")
|
186 |
+
uploaded_files = st.file_uploader("", type="pdf", accept_multiple_files=True)
|
187 |
with st.expander("Explain"):
|
188 |
st.write("You can upload more than one PDF at a time, but don't do too many at once.")
|
|
|
189 |
st.divider()
|
190 |
|
191 |
st.write("2. Enter your OpenAI API key")
|
192 |
+
openai_api_key = st.text_input("", type="password")
|
193 |
with st.expander("Explain"):
|
194 |
st.write("Your OpenAI API key allows you to use ChatGPT, the basis of your chatbot. Don't have one? Here's how to get one:")
|
195 |
st.markdown("""
|
|
|
201 |
6. In the top right, click 'Create new secret key' and save the key to a secure place (you won't have access later)
|
202 |
""")
|
203 |
st.write("If you're a nonprofit in need of funding, reach out to me at [email protected] to request a key.")
|
|
|
204 |
st.divider()
|
205 |
|
206 |
submit = st.button("Submit")
|