Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from sklearn.metrics.pairwise import cosine_similarity
|
|
| 5 |
from sentence_transformers import SentenceTransformer
|
| 6 |
|
| 7 |
# ✅ Correct way to load the model
|
| 8 |
-
model = SentenceTransformer("
|
| 9 |
|
| 10 |
# Load posts dataset
|
| 11 |
posts_df = pd.read_csv("posts_cleaned.csv")
|
|
|
|
| 5 |
from sentence_transformers import SentenceTransformer
|
| 6 |
|
| 7 |
# ✅ Correct way to load the model
|
| 8 |
+
model = SentenceTransformer("all-MiniLM-L6-v2") # Replace with your model name/path
|
| 9 |
|
| 10 |
# Load posts dataset
|
| 11 |
posts_df = pd.read_csv("posts_cleaned.csv")
|