Spaces:
Runtime error
Runtime error
Jeffrey Rathgeber Jr
commited on
namechange
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ classifier = pipeline(task="sentiment-analysis", model=model, tokenizer=tokenize
|
|
15 |
|
16 |
textIn = st.text_input("Input Text Here:", "I really like the color of your car!")
|
17 |
|
18 |
-
option = st.selectbox('Which pre-trained model would you like for your sentiment analysis?',('Pipeline', 'TextBlob', 'FINE-TUNED'))
|
19 |
|
20 |
st.write('You selected:', option)
|
21 |
|
@@ -68,5 +68,5 @@ if option == 'TextBlob':
|
|
68 |
st.write('According to TextBlob, input text is ', sentiment, ' and a subjectivity score (from 0 being objective to 1 being subjective) of ', subjectivity)
|
69 |
|
70 |
|
71 |
-
if option == 'FINE-TUNED':
|
72 |
...
|
|
|
15 |
|
16 |
textIn = st.text_input("Input Text Here:", "I really like the color of your car!")
|
17 |
|
18 |
+
option = st.selectbox('Which pre-trained model would you like for your sentiment analysis?',('Pipeline', 'TextBlob', 'MILESTONE 3: FINE-TUNED'))
|
19 |
|
20 |
st.write('You selected:', option)
|
21 |
|
|
|
68 |
st.write('According to TextBlob, input text is ', sentiment, ' and a subjectivity score (from 0 being objective to 1 being subjective) of ', subjectivity)
|
69 |
|
70 |
|
71 |
+
if option == 'MILESTONE 3: FINE-TUNED':
|
72 |
...
|