Update app.py
#2
by
BaljinderH
- opened
app.py
CHANGED
@@ -10,7 +10,7 @@ def home():
|
|
10 |
data = request.json
|
11 |
user_input = data['text']
|
12 |
# Use your model to classify the text
|
13 |
-
prediction = model.
|
14 |
return jsonify({'classification': prediction})
|
15 |
return render_template('home.html')
|
16 |
|
|
|
10 |
data = request.json
|
11 |
user_input = data['text']
|
12 |
# Use your model to classify the text
|
13 |
+
prediction = model.predict(user_input)
|
14 |
return jsonify({'classification': prediction})
|
15 |
return render_template('home.html')
|
16 |
|