Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,12 @@ from llama_index.core import Settings
|
|
5 |
import os
|
6 |
import pdfplumber
|
7 |
from docx import Document as DocxDocument
|
|
|
8 |
import json
|
9 |
|
|
|
|
|
|
|
10 |
st.header("Chat with the Streamlit docs π¬ π")
|
11 |
|
12 |
# Sidebar for OpenAI API Key
|
|
|
5 |
import os
|
6 |
import pdfplumber
|
7 |
from docx import Document as DocxDocument
|
8 |
+
from dotenv import load_dotenv
|
9 |
import json
|
10 |
|
11 |
+
# Load environment variables from .env file
|
12 |
+
load_dotenv(".env")
|
13 |
+
|
14 |
st.header("Chat with the Streamlit docs π¬ π")
|
15 |
|
16 |
# Sidebar for OpenAI API Key
|