Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:
|