| from src.recommender import MovieRecommender |
|
|
| def test_vibe(): |
| |
| print("🧠 Loading the new high-quality brain...") |
| rec = MovieRecommender() |
| rec.load('models') |
| |
|
|
| |
| description = "christpher nolan style space adventure with mind bending visuals" |
| tags = ["Science Fiction", "Drama"] |
| |
| |
| |
| full_query = f"{' '.join(tags)} {description}" |
|
|
| print(f"🔎 Searching for: '{full_query}'") |
| print("-" * 50) |
|
|
| |
| results = rec.recommend_on_text(full_query, k=5) |
|
|
| |
| for i, movie in enumerate(results): |
| print(f"{i+1}. {movie['title']} (Score: {movie['score']:.2f})") |
|
|
| if __name__ == "__main__": |
| test_vibe() |