lyangas commited on
Commit
3a4727b
1 Parent(s): 6304a81

change return in /test

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -39,11 +39,12 @@ def test_get():
39
 
40
  @app.route("/test", methods=['POST'])
41
  def test():
42
- data = request.form
43
  return {'response': data}
44
 
45
  @app.route("/predict", methods=['POST'])
46
- def read_root():
 
47
  data = request.form
48
  text = str(data['text'])
49
  top_n = int(data['top_n'])
 
39
 
40
  @app.route("/test", methods=['POST'])
41
  def test():
42
+ data = request.__dict__
43
  return {'response': data}
44
 
45
  @app.route("/predict", methods=['POST'])
46
+ def read_root():
47
+ print(request.__dict__)
48
  data = request.form
49
  text = str(data['text'])
50
  top_n = int(data['top_n'])