Full-stack application for predicting where humans look in images using DeepGaze saliency models. Includes heatmap overlays, gaze sequence prediction, hotspot detection, AOI analysis, rule-based insights, optional Claude AI design analysis, and professional PDF report generation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
366 B
Python
12 lines
366 B
Python
from sqlalchemy.ext.asyncio import AsyncSession
|
|
|
|
from app.db.session import get_db
|
|
|
|
# User ID header — placeholder for SSO integration.
|
|
# When SSO is added, this will extract user_id from the JWT/session token.
|
|
USER_ID_HEADER = "X-User-Id"
|
|
DEFAULT_USER_ID = "default"
|
|
|
|
|
|
def get_user_id(x_user_id: str | None = None) -> str:
|
|
return x_user_id or DEFAULT_USER_ID
|