Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
-
from
|
3 |
-
from
|
4 |
-
from
|
5 |
-
from
|
6 |
-
from
|
7 |
-
from
|
8 |
-
from
|
9 |
from secret1 import GOOGLE_API as google_api
|
10 |
import PyPDF2
|
11 |
def chatbot_response(user_input, history):
|
|
|
1 |
import gradio as gr
|
2 |
+
from langchain_community.llms import GooglePalm
|
3 |
+
from langchain_community.embeddings import HuggingFaceInstructEmbeddings
|
4 |
+
from langchain_community.text_splitter import CharacterTextSplitter
|
5 |
+
from langchain_community.embeddings import GooglePalmEmbeddings
|
6 |
+
from langchain_community.vectorstores import FAISS
|
7 |
+
from langchain_community.document_loaders import PyPDFLoader
|
8 |
+
from langchain_community.chains import RetrievalQA
|
9 |
from secret1 import GOOGLE_API as google_api
|
10 |
import PyPDF2
|
11 |
def chatbot_response(user_input, history):
|