Skip to content

Commit e1a2857

Browse files
committed
update api
1 parent eeb8904 commit e1a2857

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Spam Comment Detector
22

3-
This repository is based on the flask framework web application, with the help of Machine Learning, the application is capable to detect that the comment is spam or not.
4-
3+
This repository is based on the flask framework web application, with the help of Machine Learning, the application is capable to detect that the comment is spam or not.The goal of our project was to create a machine learning model that can produced output for anyone.
4+
Our project has an integrated API structure that recieve users queries and respond to them with the output of our spam email classifier model when fed with the query input parameter.
55
## File Structure
66

77
📦Spam-comment-detector-with-flask <br>

app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def predict():
5151
result = "Not a Spam"
5252
if my_prediction == 'spam':
5353
result="Spam"
54-
return jsonify({'outcome':result})
55-
return jsonify({'outcome':result})
54+
return jsonify({"input":name,'outcome':result})
55+
return jsonify({'input':name,'outcome':result})
5656

5757

5858
# email = request.form['email']

0 commit comments

Comments
 (0)