cryogenic22 commited on
Commit
5cf581b
·
verified ·
1 Parent(s): eef990a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -184,7 +184,7 @@ def initialize_qa_system(_vector_store): # Add a leading underscore to 'vector_
184
  llm=pipeline(
185
  "text-davinci-003",
186
  model="gpt-4",
187
- api_key=st.secrets["OPENAI_API_KEY"],
188
  prompt_template="Extract the specific details relevant to the query accurately from the document without adding additional information that is not present in the text. Provide concise, clear responses that stay within the boundaries of the document's content."),
189
  retriever=_vector_store.as_retriever() # Use '_vector_store' here as well
190
  )
 
184
  llm=pipeline(
185
  "text-davinci-003",
186
  model="gpt-4",
187
+ api_key=os.environ.get('OPENAI_API_KEY'),
188
  prompt_template="Extract the specific details relevant to the query accurately from the document without adding additional information that is not present in the text. Provide concise, clear responses that stay within the boundaries of the document's content."),
189
  retriever=_vector_store.as_retriever() # Use '_vector_store' here as well
190
  )