Spaces:
Running
Running
Update app.py
Browse files
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="
|
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]
|