Jiahuita
commited on
Commit
·
8cc42bc
1
Parent(s):
58554e5
Changed readme
Browse files
README.md
CHANGED
|
@@ -51,12 +51,11 @@ This model classifies news headlines as either Fox News or NBC News using an LST
|
|
| 51 |
|
| 52 |
## Usage
|
| 53 |
|
| 54 |
-
You can use this model
|
| 55 |
|
| 56 |
```python
|
| 57 |
import requests
|
| 58 |
|
| 59 |
-
# Make a prediction
|
| 60 |
response = requests.post(
|
| 61 |
"https://huggingface.co/Jiahuita/NewsSourceClassification",
|
| 62 |
json={"text": "Your news headline here"}
|
|
|
|
| 51 |
|
| 52 |
## Usage
|
| 53 |
|
| 54 |
+
You can use this model directly with a FastAPI endpoint:
|
| 55 |
|
| 56 |
```python
|
| 57 |
import requests
|
| 58 |
|
|
|
|
| 59 |
response = requests.post(
|
| 60 |
"https://huggingface.co/Jiahuita/NewsSourceClassification",
|
| 61 |
json={"text": "Your news headline here"}
|