Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,9 @@ from langchain.chains import llm
|
|
2 |
from ast import Index
|
3 |
from gpt_index import SimpleDirectoryReader, GPTListIndex, readers, GPTSimpleVectorIndex, LLMPredictor, PromptHelper
|
4 |
from langchain import OpenAI
|
|
|
5 |
|
6 |
-
os.environ["OPENAI_API_KEY"] =
|
7 |
|
8 |
def ask_patrick():
|
9 |
index = GPTSimpleVectorIndex.load_from_disk('index-4.json')
|
|
|
2 |
from ast import Index
|
3 |
from gpt_index import SimpleDirectoryReader, GPTListIndex, readers, GPTSimpleVectorIndex, LLMPredictor, PromptHelper
|
4 |
from langchain import OpenAI
|
5 |
+
import os
|
6 |
|
7 |
+
os.environ["OPENAI_API_KEY"] = OPEN_AI_KEY
|
8 |
|
9 |
def ask_patrick():
|
10 |
index = GPTSimpleVectorIndex.load_from_disk('index-4.json')
|