Spaces:
Runtime error
Runtime error
Greg Thompson
commited on
Commit
•
58e516f
1
Parent(s):
e5a763d
Test object from turn.io
Browse files
app.py
CHANGED
@@ -69,7 +69,14 @@ async def evaluate_user_message_with_nlu_api(request: Request):
|
|
69 |
{'type':'sentiment', 'data': 'negative'}
|
70 |
"""
|
71 |
|
|
|
|
|
|
|
72 |
data_dict = await request.json()
|
|
|
|
|
|
|
|
|
73 |
message_data = data_dict.get('message_data', '')
|
74 |
message_text = message_data['message']['text']['body']
|
75 |
|
|
|
69 |
{'type':'sentiment', 'data': 'negative'}
|
70 |
"""
|
71 |
|
72 |
+
print("REQUEST")
|
73 |
+
print(request)
|
74 |
+
|
75 |
data_dict = await request.json()
|
76 |
+
|
77 |
+
print("DATA DICT")
|
78 |
+
print(data_dict)
|
79 |
+
|
80 |
message_data = data_dict.get('message_data', '')
|
81 |
message_text = message_data['message']['text']['body']
|
82 |
|