Spaces:
Runtime error
Runtime error
Greg Thompson
commited on
Commit
·
0be28d8
1
Parent(s):
e0470d3
Update message_text to str
Browse files- mathtext_fastapi/nlu.py +1 -1
mathtext_fastapi/nlu.py
CHANGED
@@ -132,7 +132,7 @@ def evaluate_message_with_nlu(message_data):
|
|
132 |
"""
|
133 |
# Keeps system working with two different inputs - full and filtered @event object
|
134 |
try:
|
135 |
-
message_text = message_data['message_body']
|
136 |
except KeyError:
|
137 |
message_data = {
|
138 |
'author_id': message_data['message']['_vnd']['v1']['chat']['owner'],
|
|
|
132 |
"""
|
133 |
# Keeps system working with two different inputs - full and filtered @event object
|
134 |
try:
|
135 |
+
message_text = str(message_data['message_body'])
|
136 |
except KeyError:
|
137 |
message_data = {
|
138 |
'author_id': message_data['message']['_vnd']['v1']['chat']['owner'],
|