yanyoyo commited on
Commit
47821f6
·
1 Parent(s): b35ecf9

Update import statements and dependencies

Browse files
Files changed (2) hide show
  1. app.py +3 -1
  2. requirements.txt +5 -2
app.py CHANGED
@@ -1,8 +1,10 @@
1
  import streamlit as st
2
- from llama_index.core import VectorStoreIndex, SimpleDirectoryReader, Settings
 
3
  from llama_index.embeddings.huggingface import HuggingFaceEmbedding
4
  from llama_index.llms.huggingface import HuggingFaceLLM
5
 
 
6
  st.set_page_config(page_title="llama_index_demo", page_icon="🦜🔗")
7
  st.title("llama_index_demo")
8
 
 
1
  import streamlit as st
2
+ from llama_index import VectorStoreIndex, SimpleDirectoryReader
3
+ from llama_index import Settings
4
  from llama_index.embeddings.huggingface import HuggingFaceEmbedding
5
  from llama_index.llms.huggingface import HuggingFaceLLM
6
 
7
+
8
  st.set_page_config(page_title="llama_index_demo", page_icon="🦜🔗")
9
  st.title("llama_index_demo")
10
 
requirements.txt CHANGED
@@ -2,8 +2,11 @@
2
  streamlit==1.36.0
3
  pydantic==1.10.13 # 固定到 1.10.x 版本
4
  langchain==0.0.350 # 使用较旧的稳定版本
5
- llama-index==0.9.48
6
- llama-index-core==0.9.48
 
 
 
7
  openai==1.58.1
8
  python-dotenv
9
 
 
2
  streamlit==1.36.0
3
  pydantic==1.10.13 # 固定到 1.10.x 版本
4
  langchain==0.0.350 # 使用较旧的稳定版本
5
+ # llama-index 相关
6
+ llama-index>=0.9.48
7
+ llama-index-embeddings-huggingface>=0.1.3
8
+ llama-index-llms-huggingface>=0.2.0
9
+
10
  openai==1.58.1
11
  python-dotenv
12