Update app.py
Browse files
app.py
CHANGED
@@ -37,6 +37,8 @@ from langchain.chains import create_retrieval_chain
|
|
37 |
import time
|
38 |
from dotenv import load_dotenv
|
39 |
|
|
|
|
|
40 |
load_dotenv() #
|
41 |
|
42 |
# groq_api_key = os.environ['GROQ_API_KEY']
|
@@ -46,6 +48,11 @@ print("groq_api_key: ", groq_api_key)
|
|
46 |
# st.title("Chat with Docs - Groq Edition :) ")
|
47 |
st.title("Literature Based Research (LBR) - A. Unzicker and J. Bours - Chat with Docs - Groq Edition (Very Fast!) - VERSION 3 - March 8 2024")
|
48 |
|
|
|
|
|
|
|
|
|
|
|
49 |
if "vector" not in st.session_state:
|
50 |
|
51 |
st.write("Chunking, embedding, storing in FAISS vectorstore ...")
|
|
|
37 |
import time
|
38 |
from dotenv import load_dotenv
|
39 |
|
40 |
+
import glob
|
41 |
+
|
42 |
load_dotenv() #
|
43 |
|
44 |
# groq_api_key = os.environ['GROQ_API_KEY']
|
|
|
48 |
# st.title("Chat with Docs - Groq Edition :) ")
|
49 |
st.title("Literature Based Research (LBR) - A. Unzicker and J. Bours - Chat with Docs - Groq Edition (Very Fast!) - VERSION 3 - March 8 2024")
|
50 |
|
51 |
+
st.write("List of all the loaded documents: ")
|
52 |
+
pdf_files = glob.glob("*.pdf")
|
53 |
+
for file in pdf_files:
|
54 |
+
st.write(file)
|
55 |
+
|
56 |
if "vector" not in st.session_state:
|
57 |
|
58 |
st.write("Chunking, embedding, storing in FAISS vectorstore ...")
|