Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,9 +11,6 @@ from llama_index.core.node_parser import SentenceWindowNodeParser
|
|
11 |
from dotenv import load_dotenv
|
12 |
import re
|
13 |
|
14 |
-
# Load environment variables
|
15 |
-
load_dotenv("config.env")
|
16 |
-
|
17 |
# Set your OpenAI API key here
|
18 |
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
19 |
openai.api_key = OPENAI_API_KEY
|
|
|
11 |
from dotenv import load_dotenv
|
12 |
import re
|
13 |
|
|
|
|
|
|
|
14 |
# Set your OpenAI API key here
|
15 |
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
16 |
openai.api_key = OPENAI_API_KEY
|