Update main.py
Browse files
main.py
CHANGED
@@ -33,13 +33,13 @@ def home():
|
|
33 |
def bot():
|
34 |
load_dotenv()
|
35 |
#
|
36 |
-
|
37 |
-
|
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)
|