recommendation engine 75% polished

This commit is contained in:
Mann Patel
2025-04-03 18:56:39 -06:00
parent 3537e698b1
commit 643b9e357c
11 changed files with 162 additions and 89 deletions

View File

@@ -1,6 +1,8 @@
from flask import Flask, request, jsonify
from flask_cors import CORS
from example1 import get_recommendations
from app import get_recommendations
from app import history_upload
import time
@@ -18,8 +20,7 @@ def handle_session_data():
if not user_id or not email or is_authenticated is None:
return jsonify({'error': 'Invalid data'}), 400
print(get_recommendations(user_id))
time.sleep(2)
get_recommendations(user_id)
print(f"Received session data: User ID: {user_id}, Email: {email}, Authenticated: {is_authenticated}")
return jsonify({'message': 'Session data received successfully'})