John6666 commited on
Commit
7d3b82e
1 Parent(s): 4ca9e2f

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -15
app.py CHANGED
@@ -12,21 +12,20 @@ import re
12
  import os
13
  from sklearn.metrics.pairwise import cosine_similarity
14
 
15
- """
16
- model = SentenceTransformer('sentence-transformers/paraphrase-multilingual-mpnet-base-v2',device='cpu')
17
-
18
- llm = LlamaCpp(
19
- model_path=r"C:\Users\Cora\.cache\lm-studio\models\YC-Chen\Breeze-7B-Instruct-v1_0-GGUF\breeze-7b-instruct-v1_0-q4_k_m.gguf",
20
- n_gpu_layers=100,
21
- n_batch=512,
22
- n_ctx=3000,
23
- f16_kv=True,
24
- callback_manager=CallbackManager([StreamingStdOutCallbackHandler()]),
25
- verbose=False,
26
- )
27
- embedd_bk=pd.read_pickle(r"C:\Users\Cora\推薦系統實作\bk_description1_角色形容詞_677.pkl")
28
- df_bk=pd.read_excel(r"C:\Users\Cora\推薦系統實作\bk_description1_角色形容詞.xlsx")
29
- """
30
  llm = None
31
  model = None
32
  embedd_bk = None
 
12
  import os
13
  from sklearn.metrics.pairwise import cosine_similarity
14
 
15
+ #model = SentenceTransformer('sentence-transformers/paraphrase-multilingual-mpnet-base-v2',device='cpu')
16
+ #
17
+ #llm = LlamaCpp(
18
+ # model_path=r"C:\Users\Cora\.cache\lm-studio\models\YC-Chen\Breeze-7B-Instruct-v1_0-GGUF\breeze-7b-instruct-v1_0-q4_k_m.gguf",
19
+ # n_gpu_layers=100,
20
+ # n_batch=512,
21
+ # n_ctx=3000,
22
+ # f16_kv=True,
23
+ # callback_manager=CallbackManager([StreamingStdOutCallbackHandler()]),
24
+ # verbose=False,
25
+ #)
26
+ #embedd_bk=pd.read_pickle(r"C:\Users\Cora\推薦系統實作\bk_description1_角色形容詞_677.pkl")
27
+ #df_bk=pd.read_excel(r"C:\Users\Cora\推薦系統實作\bk_description1_角色形容詞.xlsx")
28
+
 
29
  llm = None
30
  model = None
31
  embedd_bk = None