lpalum commited on
Commit
8edbe7c
·
verified ·
1 Parent(s): 665a972

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,8 +1,7 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
-
4
  # Load a tweet classification model from Hugging Face
5
- classifier = pipeline("text-classification", model="cardiffnlp/twitter-roberta-base-sentiment")
6
 
7
  def classify_tweet(tweet):
8
  result = classifier(tweet)[0]
 
1
  import gradio as gr
2
  from transformers import pipeline
 
3
  # Load a tweet classification model from Hugging Face
4
+ classifier = pipeline("text-classification", model="finiteautomata/bertweet-base-sentiment-analysis")
5
 
6
  def classify_tweet(tweet):
7
  result = classifier(tweet)[0]