add review and read review now done

This commit is contained in:
Mann Patel
2025-04-12 13:10:17 -06:00
parent 0e32389482
commit 0f8bb622a4
16 changed files with 408 additions and 196 deletions

View File

@@ -108,6 +108,10 @@ def get_user_history(user_id):
return final
def delete_user_recommendations(userId):
pass
def get_recommendations(user_id, top_n=10):
try:
# Get all products and user history with their category vectors

View File

@@ -6,8 +6,6 @@ from flask import Flask, request, jsonify
from flask_cors import CORS
from app import get_recommendations
#import time
app = Flask(__name__)
CORS(app) # Enable CORS for all routes