aiscientist commited on
Commit
a16fa18
·
1 Parent(s): 9509fec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -1,3 +1,11 @@
1
  import gradio as gr
2
 
 
 
 
 
 
 
 
 
3
  gr.Interface.load("huggingface/finiteautomata/bertweet-base-sentiment-analysis").launch();
 
1
  import gradio as gr
2
 
3
+ pipe = pipeline(task="text-classification",
4
+ model="finiteautomata/bertweet-base-sentiment-analysis")
5
+
6
+ gr.Interface.from_pipeline(pipe,
7
+ title="Bertweet Base Sentiment Analysis",
8
+ 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.",
9
+ allow_flagging="never").launch(inbrowser=True)
10
+
11
  gr.Interface.load("huggingface/finiteautomata/bertweet-base-sentiment-analysis").launch();