alexiss12341 commited on
Commit
bf71635
1 Parent(s): 0ab1ef9

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ from transformers import pipeline
4
+
5
+ pipe = pipeline(task="text-classification",
6
+ model="finiteautomata/bertweet-base-sentiment-analysis")
7
+
8
+
9
+ gr.Interface.from_pipeline(pipe,
10
+ title="Bertweet Base Sentiment Analysis",
11
+ description="Tweet Classification using POS, NEU, NEG labels",
12
+ allow_flagging="never").launch(inbrowser=True)