Skip to content

Commit f7f4a1a

Browse files
committed
Added notes for breaking changes
1 parent c383e45 commit f7f4a1a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Spam-Detector-AI is a Python package for detecting and filtering spam messages u
1212
package integrates with Django or any other project that uses python and offers three different classifiers: Naive
1313
Bayes, Random Forest, and Support Vector Machine (SVM).
1414

15+
:warning: **Warning**: No significant breaking changes were added to the version 2.x.x in terms of usage. :warning:
16+
1517
## Table of Contents
1618

1719
- [Installation](#installation)
@@ -217,7 +219,7 @@ The API is built with Django, and the following is an example of how I use it in
217219

218220
![Screenshot](./screenshots/spam-detection-api-example.png)
219221

220-
The code:
222+
The code:
221223

222224
```python
223225
import requests
@@ -236,15 +238,15 @@ def check_website_contact_form(request):
236238
"https://spam-detection-api.adamspierredavid.com/v1/check-spam/",
237239
json={'message': message_with_subject} # Use json parameter instead of data
238240
)
239-
241+
240242
is_spam = False
241-
243+
242244
# Check if the API request was successful
243245
if response.status_code == 200:
244246
# Parse the JSON response
245247
json_response = response.json()
246248
is_spam = json_response.get('is_spam')
247-
249+
248250
if is_spam:
249251
# Do something
250252
pass

0 commit comments

Comments
 (0)