from wit import Wit
access_token="enter  your wit tokken"
client=Wit(access_token=access_token)


def wit_response(message_text):
    resp=client.message(message_text)
    entity=None
    value=None
    try:
        entity=list(resp['entities'])[0]
        value=resp['entities'][entity][0]['value']
    except:
        pass
    return(entity,value)
#print(wit_response("mechanical"))
#message_text="i live in Australia"
#resp=client.message(messjnsxc
