add review and read review now done
This commit is contained in:
Binary file not shown.
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user