Spaces:
Configuration error
Configuration error
Update app.py
Browse filesmade another update
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 |
-
|
|
|
|
|
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")
|