shukdevdatta123 commited on
Commit
f4812ec
Β·
verified Β·
1 Parent(s): d7f9801

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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