def the_critic_post(): twitter_api = TwitterApi() classifier = SentimentClassifier() # Get the query from the page input query = request.form['text'] # TODO: if the query doesn't start with a hashtag, then add one tweets = twitter_api.search_tweets(query, 5) # Does it stink? jays_rating = classifier.run(tweets) return render_template("index.html", tweets = tweets, sentiment = jays_rating)