LEWOPO's picture
Create app.py
4741cbe verified
raw
history blame
321 Bytes
import gradio as gr
from transformers import pipeline
sentiment=pipeline("sentiment-analysis")
def ana_sent(input_text):
return sentiment(input_text)
iface=gr.Interface(fn=ana_sent,inputs="text",outputs=['text'],title='Analyse des sentiment',description="entrer un texte en Anglais ")
iface.launch(inline=False)