Spaces:
Runtime error
Runtime error
Greg Thompson commited on
Commit ·
e0470d3
1
Parent(s): 39df6cb
Update user's message text type
Browse files143 unmodified lines144145146147148149150151152153154155156157143 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']# Run intent classification only for keywordsintent_api_response = run_intent_classification(message_text)if intent_api_response['data']:return intent_api_responsenumber_api_resp = text2int(message_text)if number_api_resp == 32202:# Run intent classification with logistic regression model143 unmodified lines144145146147148149150151152153154155156157143 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 = str(message_data['message_body'])# Run intent classification only for keywordsintent_api_response = run_intent_classification(message_text)if intent_api_response['data']:return intent_api_responsenumber_api_resp = text2int(message_text.lower())if number_api_resp == 32202:# Run intent classification with logistic regression model
mathtext_fastapi/nlu.py+2-2