CoolFace
Apppublic

Thesilenthowler029/tribe-v2-api

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes
App README

TRIBE v2 — Cloud Inference API

This Hugging Face Space runs the TRIBE v2 (facebook/tribev2) meta-model as a FastAPI server, predicting brain-level neural responses to text and video content.

API Endpoints

MethodEndpointDescription
GET/Health check
POST/api/analyze-textAnalyze text content (form field: text)
POST/api/analyze-videoAnalyze video content (form field: video, MP4 upload)

Response Format

json
{
  "success": true,
  "total_timesteps": 12,
  "plot_interval": 1,
  "chart_data": [],
  "htmlData": "<div>...brain heatmap as base64 image...</div>",
  "agent_summary": "Analyzed 12 timesteps...",
  "statusInfo": "Analyzed 12 timesteps — 12 chart points."
}

Environment Variables

VariableDescriptionDefault
ALLOWED_ORIGINSComma-separated CORS originshttp://localhost:5173,http://127.0.0.1:5173
MAX_UPLOAD_BYTESMax uploaded video size in bytes262144000
TRIBE_DEVICETorch/neuralset device for inference (cpu, cuda, or auto)cpu
PORTServer port7860