KeshavRa commited on
Commit
2cc9098
·
verified ·
1 Parent(s): d8feb80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -2
app.py CHANGED
@@ -187,8 +187,20 @@ if selected_app == "2) Create CSVs":
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
- openai_api_key = st.text_input("Enter your OpenAI API key", type="password")
 
 
 
 
 
 
 
 
 
 
 
 
192
 
193
  submit = st.button("Submit")
194
  if submit:
 
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.markdown("""
194
+ 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
+ 1. Go to [OpenAI](https://openai.com/) --> Products --> API --> API Login.
196
+ 2. Log in with Google, then click 'API'.
197
+ 3. In the top right, click Settings, then Billing.
198
+ 4. Add payment details and add money to the account (evan a small investment lasts a long time).
199
+ 5. Click Dashboard in the top right, then API keys on the left sidebar.
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
+ If you're a nonprofit in need of funding, reach out to me at [email protected] to request a key.
202
+ """)
203
+ openai_api_key = st.text_input("", type="password")
204
 
205
  submit = st.button("Submit")
206
  if submit: