nehalelkaref commited on
Commit
26cc54f
1 Parent(s): fab500e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -20,7 +20,8 @@ def home():
20
 
21
  @app.route('/classify', methods = ['POST'])
22
  def classify():
23
- text = request.json['inputs']
 
24
 
25
  prediction = pipe(text)
26
  labels = {"LABEL_0":"GULF", "LABEL_1":"LEVANT","LABEL_2":"EGYPT"}
 
20
 
21
  @app.route('/classify', methods = ['POST'])
22
  def classify():
23
+ text = request.form['comment']
24
+ print(comment)
25
 
26
  prediction = pipe(text)
27
  labels = {"LABEL_0":"GULF", "LABEL_1":"LEVANT","LABEL_2":"EGYPT"}