ajwthompson commited on
Commit
49000f7
·
1 Parent(s): fc26409

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ class ChatWrapper:
37
  return history, history
38
  # Set OpenAI key
39
  import openai
40
- openai.api_key = api_key
41
  # Run chain and append input.
42
  output = chain({"question": inp, "chat_history": history})["answer"]
43
  history.append((inp, output))
 
37
  return history, history
38
  # Set OpenAI key
39
  import openai
40
+ openai.api_key = os.environ["OPENAI_API_KEY"]#api_key
41
  # Run chain and append input.
42
  output = chain({"question": inp, "chat_history": history})["answer"]
43
  history.append((inp, output))