bsenst commited on
Commit
11c5888
·
1 Parent(s): 012fe4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def index():
18
  def predict():
19
  incoming = request.get_json()
20
  print(incoming)
21
- return classifier(incoming["text"])
22
 
23
  if __name__ == '__main__':
24
  app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
 
18
  def predict():
19
  incoming = request.get_json()
20
  print(incoming)
21
+ return classifier(incoming["text"])[0]
22
 
23
  if __name__ == '__main__':
24
  app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))