matthewwang16czap commited on
Commit
1f8c5d1
1 Parent(s): 925e8f1

fix requirement and bugs

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirement.txt → requirements.txt +5 -5
app.py CHANGED
@@ -5,4 +5,4 @@ import pandas as pd
5
  model_list = ["distilbert-base-uncased-finetuned-sst-2-english", "cardiffnlp/twitter-roberta-base-sentiment", "finiteautomata/bertweet-base-sentiment-analysis"]
6
  sentiment_pipeline = st.selectbox('Which model to predict?', model_list)
7
  text = st.text_input("text for sentiment analysis", value="I love you")
8
- st.write(sentiment_pipeline(text))
 
5
  model_list = ["distilbert-base-uncased-finetuned-sst-2-english", "cardiffnlp/twitter-roberta-base-sentiment", "finiteautomata/bertweet-base-sentiment-analysis"]
6
  sentiment_pipeline = st.selectbox('Which model to predict?', model_list)
7
  text = st.text_input("text for sentiment analysis", value="I love you")
8
+ st.write(sentiment_pipeline([text]))
requirement.txt → requirements.txt RENAMED
@@ -1,5 +1,5 @@
1
- streamlit
2
- opencv-python-headless
3
- numpy
4
- transformers
5
- pandas
 
1
+ streamlit
2
+ opencv-python-headless
3
+ numpy
4
+ transformers
5
+ pandas