metadata
title: Serendip Experiential Backend
emoji: π
colorFrom: blue
colorTo: indigo
sdk: docker
sdk_version: '3.10'
app_file: api.py
pinned: false
license: mit
Serendip Experiential Backend
This Space hosts the FastAPI backend for the Serendip Experiential Engine, which serves the j2damax/serendip-travel-classifier model.
API Endpoints
GET /: Health check endpointPOST /predict: Analyzes a tourism review text and returns experiential dimension scoresPOST /explain: Provides explainability for prediction results using SHAP
Usage
This backend API is designed to be used with the Serendip Experiential Frontend.
Technologies
- FastAPI
- Hugging Face Transformers
- SHAP for explainability
- PyTorch
Model
This application uses the j2damax/serendip-travel-classifier model, which was trained to identify four key experiential dimensions in Sri Lankan tourism reviews:
- π± Regenerative & Eco-Tourism
- π§ Integrated Wellness
- π Immersive Culinary
- π Off-the-Beaten-Path Adventure