MEOW commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,13 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from llama_index import (
|
|
|
|
| 3 |
SimpleDirectoryReader,
|
| 4 |
VectorStoreIndex,
|
| 5 |
ServiceContext,
|
| 6 |
LLMPredictor,
|
|
|
|
| 7 |
)
|
| 8 |
-
from llama_index.storage.storage_context import StorageContext
|
| 9 |
from llama_index.vector_stores.milvus import MilvusVectorStore
|
| 10 |
from llama_index.llms.nvidia import NVIDIA
|
| 11 |
from llama_index.embeddings.nvidia import NVIDIAEmbedding
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from llama_index.core import (
|
| 3 |
+
Settings,
|
| 4 |
SimpleDirectoryReader,
|
| 5 |
VectorStoreIndex,
|
| 6 |
ServiceContext,
|
| 7 |
LLMPredictor,
|
| 8 |
+
StorageContext,
|
| 9 |
)
|
| 10 |
+
# from llama_index.storage.storage_context import StorageContext
|
| 11 |
from llama_index.vector_stores.milvus import MilvusVectorStore
|
| 12 |
from llama_index.llms.nvidia import NVIDIA
|
| 13 |
from llama_index.embeddings.nvidia import NVIDIAEmbedding
|