Generate a Python program to detect the key phrases in a given text.
text = "I like to eat apples and oranges."
def detect_key_phrases(text):
    # use some NLP model to detect the key phrases
    key_phrases = model.predict(text)
    return key_phrases