Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,14 +7,12 @@ from transformers import (
|
|
| 7 |
pipeline
|
| 8 |
)
|
| 9 |
import streamlit as st
|
| 10 |
-
|
| 11 |
-
from
|
| 12 |
-
from
|
| 13 |
-
from langchain.vectorstores import FAISS
|
| 14 |
|
| 15 |
from langchain.prompts import PromptTemplate
|
| 16 |
from langchain.schema.runnable import RunnablePassthrough
|
| 17 |
-
from langchain.llms import HuggingFacePipeline
|
| 18 |
from langchain.chains import LLMChain
|
| 19 |
import transformers
|
| 20 |
|
|
|
|
| 7 |
pipeline
|
| 8 |
)
|
| 9 |
import streamlit as st
|
| 10 |
+
from langchain_community.vectorstores import FAISS
|
| 11 |
+
from langchain_community.embeddings import HuggingFaceEmbeddings
|
| 12 |
+
from langchain_community.llms import HuggingFacePipelinefrom transformers import BitsAndBytesConfig
|
|
|
|
| 13 |
|
| 14 |
from langchain.prompts import PromptTemplate
|
| 15 |
from langchain.schema.runnable import RunnablePassthrough
|
|
|
|
| 16 |
from langchain.chains import LLMChain
|
| 17 |
import transformers
|
| 18 |
|