alexiss12341's picture
Update app.py
a98fe28
raw
history blame
650 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline(task="text-classification",
model="finiteautomata/bertweet-base-sentiment-analysis")
gr.Interface.from_pipeline(pipe,
title="Bertweet Base Sentiment Analysis",
description="Tweet Classification using POS, NEU, NEG labels (For English Only). This space uses finiteautomata/bertweet-base-sentiment-analysis model which was trained using SemiEval 2017 corpus. The base model is BERTweet, a RoBERTa model trained on English tweets.",
allow_flagging="never").launch(inbrowser=True)