ag-mach commited on
Commit
262df6f
1 Parent(s): 2de4fcc

imports corrected

Browse files
Files changed (2) hide show
  1. app.py +4 -5
  2. 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 langchain.text_splitter import RecursiveCharacterTextSplitter
5
- from langchain.embeddings import HuggingFaceEmbeddings
6
- from langchain.vectorstores import FAISS
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