Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,9 @@ from llama_index.llms.huggingface import HuggingFaceLLM
|
|
4 |
import torch
|
5 |
import gradio as gr
|
6 |
from llama_index.core import Settings
|
7 |
-
from
|
8 |
from llama_index.core import ServiceContext
|
9 |
-
from langchain.embeddings.huggingface import HuggingFaceEmbeddings
|
10 |
|
11 |
documents = SimpleDirectoryReader('files').load_data()
|
12 |
|
|
|
4 |
import torch
|
5 |
import gradio as gr
|
6 |
from llama_index.core import Settings
|
7 |
+
from langchain_community.embeddings import HuggingFaceEmbeddings
|
8 |
from llama_index.core import ServiceContext
|
9 |
+
# from langchain.embeddings.huggingface import HuggingFaceEmbeddings
|
10 |
|
11 |
documents = SimpleDirectoryReader('files').load_data()
|
12 |
|