Upload app.py
Browse files
app.py
CHANGED
@@ -12,21 +12,20 @@ import re
|
|
12 |
import os
|
13 |
from sklearn.metrics.pairwise import cosine_similarity
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
)
|
27 |
-
|
28 |
-
|
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
|