DKYxdd commited on
Commit
93afd1d
·
1 Parent(s): 041f56e

Llamaindex

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -18,9 +18,12 @@ llm =OpenAILike(model=model, api_base=api_base_url, api_key=api_key, is_chat_mod
18
  st.set_page_config(page_title="小叮当助手", page_icon="🦜🔗")
19
  st.title("小叮当助手")
20
 
21
- if not os.path.isdir('paraphrase-multilingual-MiniLM-L12-v2'):
22
- os.system('git lfs install')
23
- os.system('git clone https://www.modelscope.cn/Ceceliachenen/paraphrase-multilingual-MiniLM-L12-v2.git')
 
 
 
24
 
25
  # 初始化模型
26
  @st.cache_resource
 
18
  st.set_page_config(page_title="小叮当助手", page_icon="🦜🔗")
19
  st.title("小叮当助手")
20
 
21
+ # if not os.path.isdir('paraphrase-multilingual-MiniLM-L12-v2'):
22
+ # os.system('git lfs install')
23
+ # os.system('git clone https://www.modelscope.cn/Ceceliachenen/paraphrase-multilingual-MiniLM-L12-v2.git')
24
+
25
+ os.system('git lfs install')
26
+ os.system('git clone https://www.modelscope.cn/Ceceliachenen/paraphrase-multilingual-MiniLM-L12-v2.git')
27
 
28
  # 初始化模型
29
  @st.cache_resource