Spaces:
Runtime error
Runtime error
Greg Thompson commited on
Commit ·
e0470d3
1
Parent(s): 39df6cb
Update user's message text type
Browse files143 unmodified lines144145146147147148149150151152153154154155156157143 unmodified lines 'message_inserted_at': message_data['message']['_vnd']['v1']['chat']['inserted_at'], 'message_updated_at': message_data['message']['_vnd']['v1']['chat']['updated_at'], } message_text = message_data['message_body'] message_text = str(message_data['message_body'])
# Run intent classification only for keywords intent_api_response = run_intent_classification(message_text) if intent_api_response['data']: return intent_api_response
number_api_resp = text2int(message_text) number_api_resp = text2int(message_text.lower())
if number_api_resp == 32202: # Run intent classification with logistic regression modelmathtext_fastapi/nlu.py+2-2