LEWOPO commited on
Commit
4741cbe
1 Parent(s): 9ac2cbc

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ sentiment=pipeline("sentiment-analysis")
5
+
6
+ def ana_sent(input_text):
7
+ return sentiment(input_text)
8
+
9
+ iface=gr.Interface(fn=ana_sent,inputs="text",outputs=['text'],title='Analyse des sentiment',description="entrer un texte en Anglais ")
10
+
11
+ iface.launch(inline=False)