datien228 commited on
Commit
46dd2fb
1 Parent(s): ca8dff8
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def recommend():
20
  # Get form data
21
  # request_data = request.args.get("input").get_json()
22
  # input_text = request_data['input_text']
23
- request_data = request.args.get("input").get_json()
24
  input_text = request_data['input_text']
25
  print(input_text)
26
 
 
20
  # Get form data
21
  # request_data = request.args.get("input").get_json()
22
  # input_text = request_data['input_text']
23
+ request_data = request.json.get("input")
24
  input_text = request_data['input_text']
25
  print(input_text)
26