alexiss12341 commited on
Commit
7af9d4a
1 Parent(s): 4260e69

Upload .ipynb_checkpoints/app-checkpoint.py

Browse files
.ipynb_checkpoints/app-checkpoint.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)