Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
@@ -17,7 +17,7 @@ This Space hosts a FastAPI application that performs Masked Language Modeling us
|
|
17 |
Returns a simple message to confirm the API is running.
|
18 |
Example: `curl https://brendon-ai-faq.hf.space/health`
|
19 |
|
20 |
-
* **Predict (POST /):**
|
21 |
Accepts a JSON payload with a `text` field containing a sentence with `[MASK]` tokens.
|
22 |
Returns a list of top 5 predictions for each masked position.
|
23 |
|
@@ -26,7 +26,7 @@ This Space hosts a FastAPI application that performs Masked Language Modeling us
|
|
26 |
curl -X POST \
|
27 |
-H "Content-Type: application/json" \
|
28 |
-d '{"text": "The quick brown fox jumps over the [MASK] dog."}' \
|
29 |
-
[https://brendon-ai-faq.hf.space/](https://brendon-ai-faq.hf.space/)
|
30 |
```
|
31 |
|
32 |
## Interactive API Documentation:
|
|
|
17 |
Returns a simple message to confirm the API is running.
|
18 |
Example: `curl https://brendon-ai-faq.hf.space/health`
|
19 |
|
20 |
+
* **Predict (POST /predict):**
|
21 |
Accepts a JSON payload with a `text` field containing a sentence with `[MASK]` tokens.
|
22 |
Returns a list of top 5 predictions for each masked position.
|
23 |
|
|
|
26 |
curl -X POST \
|
27 |
-H "Content-Type: application/json" \
|
28 |
-d '{"text": "The quick brown fox jumps over the [MASK] dog."}' \
|
29 |
+
[https://brendon-ai-faq.hf.space/predict](https://brendon-ai-faq.hf.space/predict)
|
30 |
```
|
31 |
|
32 |
## Interactive API Documentation:
|