rairo commited on
Commit
3c112ae
·
verified ·
1 Parent(s): cb1ffb7

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -6
main.py CHANGED
@@ -33,13 +33,13 @@ def home():
33
  def bot():
34
  load_dotenv()
35
  #
36
- #json_table = request.json.get("json_table")
37
- #user_question = request.json.get("user_question")
38
- data = request.get_json(force=True)
39
- print(req_body)
40
  #data = eval(req_body)
41
- json_table = data["json_table"]
42
- user_question = data["user_question"]
43
  print(json_table)
44
  print(user_question)
45
  data = eval(json_table)
 
33
  def bot():
34
  load_dotenv()
35
  #
36
+ json_table = request.json.get("json_table", force=True)
37
+ user_question = request.json.get("user_question", force=True)
38
+ #data = request.get_json(force=True)TRye
39
+ #print(req_body)
40
  #data = eval(req_body)
41
+ #json_table = data["json_table"]
42
+ #user_question = data["user_question"]
43
  print(json_table)
44
  print(user_question)
45
  data = eval(json_table)