cjell commited on
Commit
7b20be2
·
1 Parent(s): 4a3e340

adding test

Browse files
Files changed (1) hide show
  1. test.py +4 -2
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, click here!"}
6
  )
7
- print(resp.json())
 
 
 
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)