LinDee commited on
Commit
77e8d85
·
verified ·
1 Parent(s): dcf3bcc

Update app.py

Browse files

made another update

Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -4,7 +4,9 @@ from sentence_transformers import SentenceTransformer
4
  from sklearn.metrics.pairwise import cosine_similarity
5
 
6
  # Load your trained SentenceTransformer model
7
- model = SentenceTransformer("all-MiniLM-L6-v2") # Or use your custom model path if you trained a new one
 
 
8
 
9
  # Load the posts
10
  posts = pd.read_csv("posts.csv")
 
4
  from sklearn.metrics.pairwise import cosine_similarity
5
 
6
  # Load your trained SentenceTransformer model
7
+
8
+ import joblib
9
+ model = joblib.load("recommender_model.pkl")
10
 
11
  # Load the posts
12
  posts = pd.read_csv("posts.csv")