Jeffrey Rathgeber Jr commited on
Commit
06753a6
·
unverified ·
1 Parent(s): dd57828
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,11 +9,11 @@ import torch.nn.functional as F
9
  textIn = st.text_input("Input Text Here:", "I really like the color of your car!")
10
 
11
  # option = st.selectbox('Which pre-trained model would you like for your sentiment analysis?',('Pipeline', 'TextBlob', 'MILESTONE 3: FINE-TUNED'))
12
- option = st.selectbox('Which pre-trained model would you like for your sentiment analysis?',('MILESTONE 3: FINE-TUNED', 'Pipeline'))
13
 
14
  st.write('You selected:', option)
15
 
16
- if option == 'MILESTONE 3: FINE-TUNED':
17
  polarity = TextBlob(textIn).sentiment.polarity
18
  subjectivity = TextBlob(textIn).sentiment.subjectivity
19
  sentiment = ''
 
9
  textIn = st.text_input("Input Text Here:", "I really like the color of your car!")
10
 
11
  # option = st.selectbox('Which pre-trained model would you like for your sentiment analysis?',('Pipeline', 'TextBlob', 'MILESTONE 3: FINE-TUNED'))
12
+ option = st.selectbox('Which pre-trained model would you like for your sentiment analysis?',('MILESTONE 3', 'Pipeline'))
13
 
14
  st.write('You selected:', option)
15
 
16
+ if option == 'MILESTONE 3':
17
  polarity = TextBlob(textIn).sentiment.polarity
18
  subjectivity = TextBlob(textIn).sentiment.subjectivity
19
  sentiment = ''