rairo commited on
Commit
8c0f4d8
·
verified ·
1 Parent(s): 0ad47a8

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +7 -2
main.py CHANGED
@@ -33,8 +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
  print(json_table)
39
  print(user_question)
40
  data = eval(json_table)
 
33
  def bot():
34
  load_dotenv()
35
  #
36
+ #json_table = request.json.get("json_table")
37
+ #user_question = request.json.get("user_question")
38
+ req_body = request.get_json()
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)