cjell
commited on
Commit
·
cc2a8ff
1
Parent(s):
7e3cc26
final
Browse files- test.nsfw.py → test_nsfw.py +1 -1
- test_sentiment.py +1 -1
- test_spam.py +1 -1
- test_toxic.py +1 -1
test.nsfw.py → test_nsfw.py
RENAMED
|
@@ -2,7 +2,7 @@ import requests
|
|
| 2 |
|
| 3 |
url = "https://cjell-Demo.hf.space/nsfw"
|
| 4 |
|
| 5 |
-
payload = {"text": "
|
| 6 |
|
| 7 |
response = requests.post(url, json=payload)
|
| 8 |
|
|
|
|
| 2 |
|
| 3 |
url = "https://cjell-Demo.hf.space/nsfw"
|
| 4 |
|
| 5 |
+
payload = {"text": "I don't like apples."}
|
| 6 |
|
| 7 |
response = requests.post(url, json=payload)
|
| 8 |
|
test_sentiment.py
CHANGED
|
@@ -2,7 +2,7 @@ import requests
|
|
| 2 |
|
| 3 |
url = "https://cjell-Demo.hf.space/sentiment"
|
| 4 |
|
| 5 |
-
payload = {"text": "
|
| 6 |
|
| 7 |
response = requests.post(url, json=payload)
|
| 8 |
|
|
|
|
| 2 |
|
| 3 |
url = "https://cjell-Demo.hf.space/sentiment"
|
| 4 |
|
| 5 |
+
payload = {"text": "The people working outside are loud"}
|
| 6 |
|
| 7 |
response = requests.post(url, json=payload)
|
| 8 |
|
test_spam.py
CHANGED
|
@@ -2,7 +2,7 @@ import requests
|
|
| 2 |
|
| 3 |
url = "https://cjell-Demo.hf.space/spam"
|
| 4 |
|
| 5 |
-
payload = {"text": "
|
| 6 |
|
| 7 |
response = requests.post(url, json=payload)
|
| 8 |
|
|
|
|
| 2 |
|
| 3 |
url = "https://cjell-Demo.hf.space/spam"
|
| 4 |
|
| 5 |
+
payload = {"text": "Congratulations! You won $1000! Click this link to claim your prize! htts://fakesite.com."}
|
| 6 |
|
| 7 |
response = requests.post(url, json=payload)
|
| 8 |
|
test_toxic.py
CHANGED
|
@@ -2,7 +2,7 @@ import requests
|
|
| 2 |
|
| 3 |
url = "https://cjell-Demo.hf.space/toxic"
|
| 4 |
|
| 5 |
-
payload = {"text": "I
|
| 6 |
|
| 7 |
response = requests.post(url, json=payload)
|
| 8 |
|
|
|
|
| 2 |
|
| 3 |
url = "https://cjell-Demo.hf.space/toxic"
|
| 4 |
|
| 5 |
+
payload = {"text": "I do not agree with the policies being put in place by our city council."}
|
| 6 |
|
| 7 |
response = requests.post(url, json=payload)
|
| 8 |
|