Files changed (1) hide show
  1. app.py +1 -1
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.classify_text(user_input)
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