GiladtheFixer commited on
Commit
d3eb4fd
·
1 Parent(s): c042858

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ pipe=pipeline('sentiment-analysis')
5
+
6
+ def sentiment_calssifir(text):
7
+ return pipe(text)
8
+
9
+
10
+
11
+
12
+ demo = gr.Interface(fn=sentiment_calssifir, inputs="text", outputs="label")
13
+ demo.launch()