Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ from llama_index.core import VectorStoreIndex, SimpleDirectoryReader, ServiceCon
|
|
5 |
from llama_index.llms.huggingface import HuggingFaceLLM as LlamaHuggingFaceLLM
|
6 |
from llama_index.core.prompts.prompts import SimpleInputPrompt
|
7 |
from llama_index.legacy.embeddings.langchain import LangchainEmbedding
|
|
|
8 |
|
9 |
# Setup for caching the index and LLM to avoid reloading
|
10 |
@st.cache(allow_output_mutation=True, suppress_st_warning=True)
|
|
|
5 |
from llama_index.llms.huggingface import HuggingFaceLLM as LlamaHuggingFaceLLM
|
6 |
from llama_index.core.prompts.prompts import SimpleInputPrompt
|
7 |
from llama_index.legacy.embeddings.langchain import LangchainEmbedding
|
8 |
+
import torch
|
9 |
|
10 |
# Setup for caching the index and LLM to avoid reloading
|
11 |
@st.cache(allow_output_mutation=True, suppress_st_warning=True)
|