Spaces:
Runtime error
Runtime error
Jeffrey Rathgeber Jr
commited on
test
Browse files
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
|
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 = ''
|
|
|
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 = ''
|