File size: 680 Bytes
f76b926
60e8c0a
 
 
f76b926
60e8c0a
 
f76b926
 
 
60e8c0a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
title: BrainWatches Analysis Service
emoji: πŸ“Š
colorFrom: green
colorTo: indigo
sdk: docker
app_port: 7860
pinned: false
---

# BrainWatches Python Analysis Service

FastAPI microservice untuk analisis NLP berita Indonesia.

## Endpoints

- `GET /health` β€” Health check
- `POST /sentiment` β€” Analisis sentimen (lexicon / IndoBERT)
- `POST /topics` β€” Topic modeling otomatis (TF-IDF + KMeans)
- `POST /summarize` β€” Ringkasan extractive (TextRank)
- `POST /similarity` β€” Kemiripan semantik (cosine similarity)

## Auth

Semua endpoint (kecuali `/health`) butuh header `X-Service-Token`.
Set via environment variable `PY_SERVICE_TOKEN` di Settings HuggingFace Space.