Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
def main():
|
2 |
load_dotenv()
|
3 |
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from dotenv import load_dotenv
|
3 |
+
import os
|
4 |
+
from htmlTemplate import css, bot_template, user_template
|
5 |
+
import PyPDF2
|
6 |
+
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
7 |
+
from langchain_community.embeddings.spacy_embeddings import SpacyEmbeddings
|
8 |
+
from langchain_community.llms import LlamaCpp
|
9 |
+
from langchain.embeddings import HuggingFaceEmbeddings
|
10 |
+
from langchain.vectorstores import FAISS
|
11 |
+
from langchain.memory import ConversationBufferMemory
|
12 |
+
from langchain.chains import ConversationalRetrievalChain
|
13 |
+
from langchain.prompts import PromptTemplate
|
14 |
+
from sentence_transformers import SentenceTransformer, util
|
15 |
+
from langchain_openai import AzureOpenAIEmbeddings
|
16 |
+
from langchain_openai import OpenAIEmbeddings
|
17 |
+
from langchain_community.embeddings.fastembed import FastEmbedEmbeddings
|
18 |
+
from langchain_openai import ChatOpenAI
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
def main():
|
23 |
load_dotenv()
|
24 |
|