Spaces:
Sleeping
Sleeping
File size: 1,362 Bytes
0785bb2 3f4cf11 0785bb2 3f4cf11 | 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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | ---
title: Tahkik Basic Warsh
emoji: ๐
colorFrom: green
colorTo: blue
sdk: docker
app_port: 7860
---
# Tahkik Inference API
FastAPI inference server for the `benhadjermed/tahkik-basic-warsh` Whisper model.
Accepts Arabic Quranic audio and returns a transcription with a confidence score.
## Endpoints
| Method | Path | Description |
|--------|-------------|------------------------------|
| GET | `/health` | Liveness check |
| POST | `/evaluate` | Transcribe an audio file |
## POST /evaluate
**Request** โ `multipart/form-data`
| Field | Type | Required | Notes |
|---------|------|----------|--------------------------------------------|
| `audio` | file | yes | `.wav`, `.mp3`, `.m4a`, `.flac`, or `.ogg` |
**Response** โ `application/json`
```json
{
"transcription": "ุงูุญู
ุฏ ููู ุฑุจ ุงูุนุงูู
ูู",
"confidence_score": 0.9423,
"processing_time_ms": 1350
}
```
**Error** โ non-200 status
```json
{
"detail": "unsupported audio format: .xyz"
}
```
## Environment / Secrets
| Name | Where to set | Purpose |
|------------|-------------------|------------------------------------------------|
| `HF_TOKEN` | Space secret | Required if `tahkik-basic-warsh` is private |
|