benliang99 commited on
Commit
f59b608
2 Parent(s): 45dd119 1ce306e

Merge branch 'milestone-2'

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ DEFAULT_OPT = MODEL_OPTS[0]
7
 
8
  # returns loaded model and tokenizer, if any
9
  def load_model(opt):
10
- if opt not in MODEL_OPTS: print("Incorrect model selection. Try again!", "I love AI!")
11
  model, tokenizer = None, None
12
 
13
  # Load the chosen sentiment analysis model from transformers
@@ -38,7 +38,7 @@ st.title('Sentiment Analysis')
38
  st.markdown('Link to the app - [sentiment-analysis-app](https://huggingface.co/spaces/saccharinedreams/sentiment-analysis-app)')
39
 
40
  # Take in user input
41
- user_text = st.text_input('Input text to perform sentiment analysis on here.')
42
 
43
  # The user can interact with a dropdown menu to choose a sentiment analysis model.
44
  dropdown_value = st.selectbox('Select one of the following sentiment analysis models', MODEL_OPTS, index=MODEL_OPTS.index(DEFAULT_OPT))
 
7
 
8
  # returns loaded model and tokenizer, if any
9
  def load_model(opt):
10
+ if opt not in MODEL_OPTS: print("Incorrect model selection. Try again!")
11
  model, tokenizer = None, None
12
 
13
  # Load the chosen sentiment analysis model from transformers
 
38
  st.markdown('Link to the app - [sentiment-analysis-app](https://huggingface.co/spaces/saccharinedreams/sentiment-analysis-app)')
39
 
40
  # Take in user input
41
+ user_text = st.text_input('Input text to perform sentiment analysis on here.', 'I love AI!')
42
 
43
  # The user can interact with a dropdown menu to choose a sentiment analysis model.
44
  dropdown_value = st.selectbox('Select one of the following sentiment analysis models', MODEL_OPTS, index=MODEL_OPTS.index(DEFAULT_OPT))