Spaces:
Sleeping
Sleeping
File size: 1,139 Bytes
a34e2be 32f060b a34e2be b908fcf a34e2be 32f060b c4bd657 32f060b c4bd657 32f060b |
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 |
---
title: NeuroBERT-Tiny API
emoji: 🤖
colorFrom: blue
colorTo: green
sdk: docker
app_port: 7860
---
# NeuroBERT-Tiny Masked Language Model API
This Space hosts a FastAPI application that performs Masked Language Modeling using the [boltuix/NeuroBERT-Tiny](https://huggingface.co/boltuix/NeuroBERT-Tiny) model.
## Endpoints:
* **Health Check (GET /health):**
Returns a simple message to confirm the API is running.
Example: `curl https://brendon-ai-faq.hf.space/health`
* **Predict (POST /predict):**
Accepts a JSON payload with a `text` field containing a sentence with `[MASK]` tokens.
Returns a list of top 5 predictions for each masked position.
Example `curl` request:
```bash
curl -X POST \
-H "Content-Type: application/json" \
-d '{"text": "The quick brown fox jumps over the [MASK] dog."}' \
[https://brendon-ai-faq.hf.space/predict](https://brendon-ai-faq.hf.space/predict)
```
## Interactive API Documentation:
You can find the full interactive API documentation at:
* [Swagger UI](https://brendon-ai-faq.hf.space/docs)
* [ReDoc](https://brendon-ai-faq.hf.space/redoc) |