Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,8 @@ import gradio as gr
|
|
2 |
import os
|
3 |
from langchain.vectorstores import Chroma
|
4 |
from langchain.document_loaders import PyPDFLoader
|
|
|
|
|
5 |
from langchain.embeddings import HuggingFaceInferenceAPIEmbeddings
|
6 |
|
7 |
# Use Hugging Face Inference API embeddings
|
|
|
2 |
import os
|
3 |
from langchain.vectorstores import Chroma
|
4 |
from langchain.document_loaders import PyPDFLoader
|
5 |
+
from langchain.text_splitter import CharacterTextSplitter
|
6 |
+
|
7 |
from langchain.embeddings import HuggingFaceInferenceAPIEmbeddings
|
8 |
|
9 |
# Use Hugging Face Inference API embeddings
|