Benjamin S Liang commited on
Commit
5a40ca9
1 Parent(s): 01bc063

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import streamlit as st
2
- from transformers import pipeline, AutoModelForSequenceClassification, AutoTokenizer, TFAutoModelForSequenceClassification, DistillbertForSequenceClassification
3
 
4
  # Options for models from transformers library
5
  MODEL_OPTS = ['default', 'bertweet-base-sentiment-analysis', 'twitter-roberta-base', 'distilRoberta-financial-sentiment']
@@ -35,6 +35,7 @@ def sentiment_analysis(model, tokenizer):
35
 
36
  # Title the Streamlit app 'Sentiment Analysis'
37
  st.title('Sentiment Analysis')
 
38
 
39
  # Take in user input
40
  user_text = st.text_input('Input text to perform sentiment analysis on here.')
 
1
  import streamlit as st
2
+ from transformers import pipeline, AutoModelForSequenceClassification, AutoTokenizer, TFAutoModelForSequenceClassification
3
 
4
  # Options for models from transformers library
5
  MODEL_OPTS = ['default', 'bertweet-base-sentiment-analysis', 'twitter-roberta-base', 'distilRoberta-financial-sentiment']
 
35
 
36
  # Title the Streamlit app 'Sentiment Analysis'
37
  st.title('Sentiment Analysis')
38
+ st.markdown('Link to the app - [sentiment-analysis-app](https://huggingface.co/spaces/saccharinedreams/sentiment-analysis-app)')
39
 
40
  # Take in user input
41
  user_text = st.text_input('Input text to perform sentiment analysis on here.')