Reddit Sentiment Analysis Y4 v3.0.0
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
app.py File Reference

Go to the source code of this file.

Classes

class  app.SearchHistory
 

Namespaces

namespace  app
 

Functions

 app.get_utc_plus_one ()
 
 app.fetch_comments_from_posts (search_term, subreddit='all', sort_order='default', time_filter='all', comment_sort_order='top', max_comments=1000, max_comments_per_post=75)
 
 app.preprocess_text (text)
 
 app.predict_sentiment (text)
 
 app.interpret_sentiment (positive_percentage)
 
 app.convert_to_html_list (text)
 
 app.prepare_comments_for_gpt (comments, max_tokens=16385, prompt_type='default')
 
 app.chatgpt_sentiment_analysis (comments, prompt_type)
 
 app.save_sentiment_pie_chart (positive_percentage, image_path)
 
 app.save_word_cloud (comments, image_path)
 
 app.fetch_comments (search_term, subreddit='all', limit=5)
 
 app.home ()
 
 app.generate_prompt ()
 
 app.validate_search_term ()
 
 app.landing ()
 
 app.history ()
 

Variables

 app.app = Flask(__name__)
 
 app.secret_key
 
 app.db = SQLAlchemy(app)
 
 app.reddit
 
 app.model = DistilBertForSequenceClassification.from_pretrained('C:\\Users\\35387\\Desktop\\app1\\distilbert_sentiment_analysis')
 
 app.tokenizer = DistilBertTokenizerFast.from_pretrained('C:\\Users\\35387\\Desktop\\app1\\distilbert_sentiment_analysis_tokenizer')
 
 app.debug