Spaces:
Runtime error
Runtime error
imports corrected
Browse files- app.py +4 -5
- requirements.txt +0 -2
app.py
CHANGED
@@ -1,13 +1,12 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
from langchain_text_splitters import Language
|
4 |
-
from
|
5 |
-
from
|
6 |
-
from
|
7 |
from langchain.memory import ConversationBufferMemory
|
8 |
from langchain.chains import ConversationalRetrievalChain
|
9 |
from transformers import pipeline
|
10 |
-
from langchain import HuggingFacePipeline
|
11 |
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
|
12 |
import torch
|
13 |
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
from langchain_text_splitters import Language, RecursiveCharacterTextSplitter
|
4 |
+
from langchain_community.embeddings import HuggingFaceEmbeddings
|
5 |
+
from langchain_community.vectorstores import FAISS
|
6 |
+
from langchain_community import HuggingFacePipeline
|
7 |
from langchain.memory import ConversationBufferMemory
|
8 |
from langchain.chains import ConversationalRetrievalChain
|
9 |
from transformers import pipeline
|
|
|
10 |
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
|
11 |
import torch
|
12 |
|
requirements.txt
CHANGED
@@ -4,8 +4,6 @@ langchain-community
|
|
4 |
python-dotenv
|
5 |
faiss-cpu
|
6 |
huggingface-hub
|
7 |
-
accelerate
|
8 |
-
bitsandbytes
|
9 |
torch
|
10 |
langchain-text-splitters
|
11 |
sentence_transformers
|
|
|
4 |
python-dotenv
|
5 |
faiss-cpu
|
6 |
huggingface-hub
|
|
|
|
|
7 |
torch
|
8 |
langchain-text-splitters
|
9 |
sentence_transformers
|