Mattdoc99 commited on
Commit
fa7bbec
·
1 Parent(s): 92d1d61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -3,6 +3,8 @@ from ast import Index
3
  from gpt_index import SimpleDirectoryReader, GPTListIndex, readers, GPTSimpleVectorIndex, LLMPredictor, PromptHelper
4
  from langchain import OpenAI
5
 
 
 
6
  def ask_patrick():
7
  index = GPTSimpleVectorIndex.load_from_disk('index-4.json')
8
  while True:
 
3
  from gpt_index import SimpleDirectoryReader, GPTListIndex, readers, GPTSimpleVectorIndex, LLMPredictor, PromptHelper
4
  from langchain import OpenAI
5
 
6
+ os.environ["OPENAI_API_KEY"] = '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'
7
+
8
  def ask_patrick():
9
  index = GPTSimpleVectorIndex.load_from_disk('index-4.json')
10
  while True: