cryogenic22 commited on
Commit
d636377
·
verified ·
1 Parent(s): 48e07bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -188,7 +188,7 @@ def initialize_qa_system(_vector_store):
188
  try:
189
  llm = OpenAI(
190
  model_name="gpt-4", # Or another OpenAI model like "text-davinci-003"
191
- api_key=st.secrets["OPENAI_API_KEY"],
192
  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."
193
  )
194
 
 
188
  try:
189
  llm = OpenAI(
190
  model_name="gpt-4", # Or another OpenAI model like "text-davinci-003"
191
+ api_key=os.environ.get('OPENAI_API_KEY'),
192
  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."
193
  )
194