Spaces:
Sleeping
Sleeping
Update example1.py
Browse files- example1.py +2 -2
example1.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
model="distilbert-base-uncased-finetuned-sst-2-english"
|
5 |
-
classifier = pipeline("sentiment-analysis"
|
6 |
text = st.text_input("Input a text:")
|
7 |
st.write(classifier(text))
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
#model="distilbert-base-uncased-finetuned-sst-2-english"
|
5 |
+
classifier = pipeline("sentiment-analysis") #, model=model)
|
6 |
text = st.text_input("Input a text:")
|
7 |
st.write(classifier(text))
|