Spaces:
Sleeping
Sleeping
cjell commited on
Commit ·
7b20be2
1
Parent(s): 4a3e340
adding test
Browse files
test.py
CHANGED
|
@@ -2,6 +2,8 @@ import requests
|
|
| 2 |
|
| 3 |
resp = requests.post(
|
| 4 |
"https://cjell-spam-fastapi.hf.space/predict",
|
| 5 |
-
json={"text": "Congratulations! You've won a free cruise
|
| 6 |
)
|
| 7 |
-
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
resp = requests.post(
|
| 4 |
"https://cjell-spam-fastapi.hf.space/predict",
|
| 5 |
+
json={"text": "Congratulations! You've won a free cruise!"}
|
| 6 |
)
|
| 7 |
+
|
| 8 |
+
print("Status:", resp.status_code)
|
| 9 |
+
print("Raw text:", resp.text)
|