@st.cache(allow_output_mutation=True)
def get_tweets(key, secret, search_term):
    authentication = tweepy.OAuthHandler(api_key, api_secret)
    api = tweepy.API(authentication)
    term = (search_term + '-filter:retweets')
    tweets = tweepy.Cursor(api.search, q=term, lang='en', since=today, tweet_mode='extended').items(100)
    tweets_text = [tweet.full_text for tweet in tweets]
    df = pd.DataFrame(tweets_text, columns=['Tweets'])
    return df
@st.cache(allow_output_mutation=True)
def get_tweets(key, secret, search_term):
    authentication = tweepy.OAuthHandler(api_key, api_secret)
    api = tweepy.API(authentication)
    term = (search_term + '-filter:retweets')
    tweets = tweepy.Cursor(api.search, q=term, lang='en', since=today, tweet_mode='extended').items(100)
    tweets_text = [tweet.full_text for tweet in tweets]
    df = pd.DataFrame(tweets_text, columns=['Tweets'])
    return df