Spaces:
Running
Running
SinhNguyen
commited on
Commit
•
734f1f6
1
Parent(s):
139146c
set langchain verbose to False
Browse files
app.py
CHANGED
@@ -1,13 +1,16 @@
|
|
1 |
import streamlit as st
|
2 |
from PyPDF2 import PdfReader
|
|
|
3 |
from langchain.text_splitter import CharacterTextSplitter
|
4 |
from langchain.embeddings import HuggingFaceInstructEmbeddings
|
5 |
from langchain.vectorstores import FAISS
|
6 |
from langchain.memory import ConversationBufferMemory
|
7 |
from langchain.chains import ConversationalRetrievalChain
|
8 |
-
from htmlTemplates import css, bot_template, user_template
|
9 |
from langchain.llms import HuggingFaceHub
|
10 |
-
|
|
|
|
|
|
|
11 |
from dotenv import load_dotenv
|
12 |
|
13 |
# Set the Streamlit page configuration and CSS styles
|
|
|
1 |
import streamlit as st
|
2 |
from PyPDF2 import PdfReader
|
3 |
+
|
4 |
from langchain.text_splitter import CharacterTextSplitter
|
5 |
from langchain.embeddings import HuggingFaceInstructEmbeddings
|
6 |
from langchain.vectorstores import FAISS
|
7 |
from langchain.memory import ConversationBufferMemory
|
8 |
from langchain.chains import ConversationalRetrievalChain
|
|
|
9 |
from langchain.llms import HuggingFaceHub
|
10 |
+
|
11 |
+
import langchain
|
12 |
+
langchain.verbose = False
|
13 |
+
from htmlTemplates import css, bot_template, user_template
|
14 |
from dotenv import load_dotenv
|
15 |
|
16 |
# Set the Streamlit page configuration and CSS styles
|