Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
#18
by
Uzaiir
- opened
- src/streamlit_app.py +4 -6
src/streamlit_app.py
CHANGED
|
@@ -181,15 +181,13 @@
|
|
| 181 |
# )
|
| 182 |
|
| 183 |
|
| 184 |
-
import streamlit as st
|
| 185 |
import os
|
| 186 |
-
|
| 187 |
-
from langchain_core.runnables import Runnable
|
| 188 |
from langchain.chains import RetrievalQA
|
| 189 |
-
from langchain.chains.combine_documents import create_stuff_documents_chain
|
| 190 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 191 |
-
|
| 192 |
-
from langchain.
|
|
|
|
| 193 |
|
| 194 |
# Set up the page
|
| 195 |
st.set_page_config(page_title="Chat with your PDF", layout="wide")
|
|
|
|
| 181 |
# )
|
| 182 |
|
| 183 |
|
|
|
|
| 184 |
import os
|
| 185 |
+
import streamlit as st
|
|
|
|
| 186 |
from langchain.chains import RetrievalQA
|
|
|
|
| 187 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 188 |
+
from pdfprocess_sample import process_pdf_from_path
|
| 189 |
+
from langchain.vectorstores import FAISS
|
| 190 |
+
import faiss
|
| 191 |
|
| 192 |
# Set up the page
|
| 193 |
st.set_page_config(page_title="Chat with your PDF", layout="wide")
|