HaryaniAnjali commited on
Commit
8776fe2
·
verified ·
1 Parent(s): 62ad187

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -150,16 +150,7 @@ def create_langchain_agent(vector_store):
150
  if not openai_api_key:
151
  # Display prominent instructions if no API key
152
  st.warning(" Please enter your OpenAI API key in the sidebar to use this application.")
153
-
154
- st.markdown("""
155
- ### How to get an OpenAI API Key:
156
- 1. Go to [OpenAI's platform](https://platform.openai.com/account/api-keys)
157
- 2. Sign up or log in
158
- 3. Create a new secret key
159
- 4. Copy and paste it into the sidebar
160
-
161
- Your API key is only used in your current session and not stored permanently.
162
- """)
163
  else:
164
  # Process the book when needed
165
  if not st.session_state.book_processed:
 
150
  if not openai_api_key:
151
  # Display prominent instructions if no API key
152
  st.warning(" Please enter your OpenAI API key in the sidebar to use this application.")
153
+
 
 
 
 
 
 
 
 
 
154
  else:
155
  # Process the book when needed
156
  if not st.session_state.book_processed: